History pushState doesn't trigger Interceptor Route #70886
Labels
bug
Issue was opened via the bug report template.
Parallel & Intercepting Routes
Related to Parallel and/or Intercepting routes.
Link to the code that reproduces this issue
https://github.com/iamJoeTaylor/next-intercept-route
To Reproduce
npm run dev
in my-appOpen Modal with history
which useswindow.history.pushState
To build a reproduction yourself;
window.history.pushState
This blog mentions pushSate so I'd expect it to work. https://nextjs.org/blog/next-14-1#windowhistorypushstate-and-windowhistoryreplacestate
Current vs. Expected behavior
Currently the URL changes but the interceptor route is not invoked.
Expect the URL to change, the intercept route to work, and the history item to be present when fetched from
window.history.state
Provide environment information
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:36 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6020 Available memory (MB): 32768 Available CPU cores: 12 Binaries: Node: 20.9.0 npm: 10.1.0 Yarn: 1.22.19 pnpm: 8.15.4 Relevant Packages: next: 14.2.14 // Latest available version is detected (14.2.14). eslint-config-next: 14.2.14 react: 18.3.1 react-dom: 18.3.1 typescript: 5.6.2 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), Vercel (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: