Redirect in page.tsx shows a white page on client-side navigation #67427
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/Jens-n11/nextjs-redirect-example
To Reproduce
If you use a
next/navigation
redirect()
in a page.tsx which is called via anext/Link
<Link>
(client side navigation) the browser will show a white page for a part of a second until the redirect happens.Current vs. Expected behavior
I would expect, that next does not start rendering the new page if the page throws a redirect. I would expect the same look-and-feel with
next/Link
like it would be with an<a>
Tag. See this example video with first the<a>
Tag and then thenext/link
(with client side navigation):2024-07-03.mov
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), next build (local), next start (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: