Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Related to #58661 redirect(<path>) does not work at all inside intercepting routes #74602

Open
plugin94 opened this issue Jan 7, 2025 · 0 comments
Labels
bug Issue was opened via the bug report template.

Comments

@plugin94
Copy link

plugin94 commented Jan 7, 2025

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 )

  1. Install deps with Bun
  2. bun run dev
  3. Navigate to /sites
  4. Press create a new site anchor tag
  5. Observe route is intercepted correctly at /sites/new
  6. Add any text and press Submit
  7. Observe nothing happens, form submits fine but redirect call will not do navigate back to /sites
  8. Now set browser url to http://localhost:3000/sites/new to load standalone page
  9. Repeat step 6 and observe everything work.

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

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

@plugin94 plugin94 added the bug Issue was opened via the bug report template. label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

1 participant