Intercepted page in dynamic route with route groups gets called when linked from another segment #65061
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/tjabbe/parallel-intercepting-with-dynamic-route
To Reproduce
Go to https://parallel-intercepting-with-dynamic-route.vercel.app/dynamic-route/list and click on the link
It will call the intercepted page, which it shouldn't since we're not in the [slug] segment
Go to https://parallel-intercepting-with-dynamic-route.vercel.app/dynamic-route and click on the first link "Single Clip Page"
it will correctly call the non-intercepted page, which is expected behaviour that I would expect while in
/list
Current vs. Expected behavior
I would expect that the non-intercepted page would be called when clicking on a link from another segment, here from
/list
to[slug]/clips/[id]
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 Available memory (MB): 36864 Available CPU cores: 12 Binaries: Node: 20.11.1 npm: 10.2.4 Yarn: 1.22.21 pnpm: N/A Relevant Packages: next: 14.3.0-canary.23 // Latest available version is detected (14.3.0-canary.23). eslint-config-next: N/A react: 18.3.0 react-dom: 18.3.0 typescript: 5.1.3 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 start (local), Vercel (Deployed), Other (Deployed)
Additional context
Hello!
This issue only seems to happen if the intercepting page is called from another segment. It works fine if it's called from the "root" page.
I have also included a
static-route
example which doesn't use a dynamic route, and it works fine there with the same route groups setup.Thank you!
The text was updated successfully, but these errors were encountered: