You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The link to /foto/test does not open a modal using the intercepted route, while /photo/test does.
I'vet set a rewrite in beforeFiles in next.config.js to rewrite /foto/:id to /photo/:id, but it is not respected for the intercepted route, while it does work for the normal page (loading /foto/test works)
Expected Behavior
Both links open the modal using the intercepted route.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered:
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.4.0: Mon Mar 6 21:01:02 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8112 Binaries: Node: 16.17.1 npm: 8.15.0 Yarn: 1.22.19 pnpm: 7.5.2 Relevant packages: next: 13.3.1 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Internationalization (i18n)
Link to the code that reproduces this issue
https://github.com/alvarlagerlof/nextjs-intercepepted-routes-rewrites-repro
To Reproduce
Click on the each of the links on the start page.
Deployed demo: https://nextjs-intercepepted-routes-rewrites-repro.vercel.app/
Describe the Bug
The link to
/foto/test
does not open a modal using the intercepted route, while/photo/test
does.I'vet set a rewrite in
beforeFiles
innext.config.js
to rewrite/foto/:id
to/photo/:id
, but it is not respected for the intercepted route, while it does work for the normal page (loading/foto/test
works)Expected Behavior
Both links open the modal using the intercepted route.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: