Link to the code that reproduces this issue
https://github.com/justinradomski/repro-next-intercept
To Reproduce
- Start the application in dev mode (npm run dev)
- Open http://localhost:3000/, click the 'Interception link' to see the modal
- Now run the project in production mode (npm run build npm start)
- Click the 'interception link'. It navigates to the page instead of showing the modal
Current vs. Expected behavior
Original comment from #67400: I expected the modal to keep working similar to how it does in dev mode, also in production mode.
After RC2: Modals don't work in dev OR production, instead the route just changes completely.
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Pro
Available memory (MB): 64618
Available CPU cores: 16
Binaries:
Node: 20.15.1
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 15.0.2 // Latest available version is detected (15.0.2).
eslint-config-next: 15.0.0-rc.1
react: 19.0.0-rc-cd22717c-20241013
react-dom: 19.0.0-rc-cd22717c-20241013
typescript: N/A
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Parallel & Intercepting Routes
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed)
Additional context
No response
Link to the code that reproduces this issue
https://github.com/justinradomski/repro-next-intercept
To Reproduce
Current vs. Expected behavior
Original comment from #67400: I expected the modal to keep working similar to how it does in dev mode, also in production mode.
After RC2: Modals don't work in dev OR production, instead the route just changes completely.
Provide environment information
Which area(s) are affected? (Select all that apply)
Parallel & Intercepting Routes
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed)
Additional context
No response