Parallel routes breaks completely after being redirected from a server action function #65411
Labels
bug
Issue was opened via the bug report template.
Parallel & Intercepting Routes
Related to Parallel and/or Intercepting routes.
Link to the code that reproduces this issue
https://github.com/vercel/nextgram
To Reproduce
import { redirect } from 'next/navigation';
import { Modal } from './modal';
export default function PhotoModal({
params: { id: photoId },
}: {
params: { id: string };
}) {
return
<form action={async ()=>{
"use server";
redirect('/');
}}>
Submit
;
}
Current vs. Expected behavior
i expected the modal to pop up after being redirected to the '/' route but instead it just changes the url and nothing renders
Provide environment information
Which area(s) are affected? (Select all that apply)
Parallel & Intercepting Routes
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: