Next 14 - redirect(<path>)
does not work at all inside intercepting routes
#58661
Closed
1 task done
Labels
bug
Issue was opened via the bug report template.
locked
Navigation
Related to Next.js linking (e.g., <Link>) and navigation.
Link to the code that reproduces this issue
https://github.com/sannajammeh/next-intercepting-noredirect
To Reproduce
bun run dev
create a new site
anchor tag/sites/new
Submit
redirect
call will not do navigate back to/sites
http://localhost:3000/sites/new
to load standalone pageCurrent vs. Expected behavior
Current:
redirect()
called inside server action will never fire on an intercepting route. Redirect works as usual on normal routes. This happens both innext dev
&next start
Expected:
redirect()
should work on both normal and intercepted route.Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103 Binaries: Node: 21.0.0 npm: 10.2.0 Yarn: 1.22.11 pnpm: 8.10.5 Relevant Packages: next: 14.0.4-canary.5 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
App Router, Routing (next/router, next/navigation, next/link)
Additional context
I have tested this on both Next 13, 14 (current) and 14 (canary). All yield the same bug.
The text was updated successfully, but these errors were encountered: