Skip to content

Child route is incorrectly intercepted by adjacent route #78289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jacoblapworth opened this issue Apr 17, 2025 · 1 comment
Open

Child route is incorrectly intercepted by adjacent route #78289

jacoblapworth opened this issue Apr 17, 2025 · 1 comment
Labels
Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes.

Comments

@jacoblapworth
Copy link

jacoblapworth commented Apr 17, 2025

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/quirky-hugle-9j7ns4

To Reproduce

  1. Create dynamic routes inside adjacent parent routes
intercepter
↳ [id]
list
↳ [id]
  1. Create a parallel intercepted route in one of the dynamic routes
intercepter
↳ [id]
    @modal
    ↳ (.)[id]
  1. Soft navigate to the non-intercepted url /list/[id]

Current vs. Expected behavior

Id param on /list/[id] shows as "(.)id" e.g. for route /list/1 param id = "(.)1"

(.) Should only match on the same level, but instead seems to be matching one level up

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.4.0: Wed Mar 19 21:16:34 PDT 2025; root:xnu-11417.101.15~1/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 22.14.0
  npm: 11.3.0
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 15.3.1-canary.11 // Latest available version is detected (15.3.1-canary.11).
  eslint-config-next: 14.2.15
  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)

Parallel & Intercepting Routes

Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local), Vercel (Deployed)

Additional context

No response

@github-actions github-actions bot added the Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes. label Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes.
Projects
None yet
Development

No branches or pull requests

2 participants
@jacoblapworth and others