Next 15 migration: next/navigation "redirect" method does not execute from server action #72842
Labels
bug
Issue was opened via the bug report template.
Navigation
Related to Next.js linking (e.g., <Link>) and navigation.
Link to the code that reproduces this issue
https://github.com/justin-algoleaf/redirect-test
To Reproduce
Current vs. Expected behavior
Current Behavior
Form submission runs server action which should execute redirect('/dashboard'). I get a 303 for the redirect, but the redirect is not performed in the browser. Server action completes and nothing happens.
Expected Behavior
Form submission runs server action which executes successful redirect to '/dashboard'
Provide environment information
Which area(s) are affected? (Select all that apply)
Navigation
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This is the exact project structure and route grouping I used in all of my Next 14 builds. I have the (auth) group and page, which should redirect users via server action to the /dashboard page with successful login. After migrating to Next 15 along with next/form Form and useActionState, redirect does not properly execute. The minimal recreation repo I provided should demonstrate the issue clearly.
Thanks for your help!
The text was updated successfully, but these errors were encountered: