You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(The issue can be reproduced simply by following the steps mentioned in the original post. Even after updating Next.js to the latest version (15.1.3), it still doesn't work as expected. please update next version to 15.1.3 first )
Install deps with Bun
bun run dev
Navigate to /sites
Press create a new site anchor tag
Observe route is intercepted correctly at /sites/new
Add any text and press Submit
Observe nothing happens, form submits fine but redirect call will not do navigate back to /sites
redirect() called inside server action will never fire on an intercepting route. Redirect works as usual on normal routes. This happens both in next dev & next start
redirect() should work on both normal and intercepted route.
Provide environment information
Binaries:
Node: 20.18.0
npm: 10.8.2
Yarn: 1.22.22
pnpm: N/A
Relevant Packages:
next: 15.1.3 // Latest available version is detected (15.1.3).
eslint-config-next: N/A
react: 18.3.1
react-dom: 18.3.1
typescript: 5.7.2
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Link to the code that reproduces this issue
https://github.com/sannajammeh/next-intercepting-noredirect
To Reproduce
(The issue can be reproduced simply by following the steps mentioned in the original post. Even after updating Next.js to the latest version (15.1.3), it still doesn't work as expected. please update next version to
15.1.3
first )Current vs. Expected behavior
redirect() called inside server action will never fire on an intercepting route. Redirect works as usual on normal routes. This happens both in next dev & next start
redirect() should work on both normal and intercepted route.
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: