[App Router] redirect() causes the target page to be server-rendered twice when navigated via <Link> #78493
Labels
Linking and Navigating
Related to Next.js linking (e.g., <Link>) and navigation.
Link to the code that reproduces this issue
https://github.com/lp0ql/next-15.3.1-double-server-side-rendering
To Reproduce
Describe the Bug
When a user clicks a (next/link) that points to a route where the server component calls redirect(), the target page appears to be server-rendered twice.
Steps to Reproduce
The repository contains three sub-directories:
To verify the regression:
git clone https://github.com/lp0ql/next-15.3.1-double-server-side-rendering
cd next-15.3.1-double-server-side-rendering/15
orcd next-15.3.1-double-server-side-rendering/15-reproduction-template
npm install
npm run dev
If you repeat the same procedure inside the 14 directory, the log appears only once, confirming that this is a v15-specific regression.
Current vs. Expected behavior
MinimumSetup
Minimum Setup Result
Minimum Setup Result
MinimumSetup
Minimum Setup Result
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.4.0: Fri Apr 11 18:33:24 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_VMAPPLE Available memory (MB): 8192 Available CPU cores: 8 Binaries: Node: 22.1.0 npm: 10.7.0 Yarn: N/A pnpm: 10.9.0 Relevant Packages: next: 15.3.1 // Latest available version is detected (15.3.1). eslint-config-next: 15.3.1 react: 19.1.0 react-dom: 19.1.0 typescript: 5.8.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Linking and Navigating
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
First-time reporter—sorry in advance if I missed anything.
Big thanks to the Next.js team for your awesome work!
The text was updated successfully, but these errors were encountered: