-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed
Labels
Parallel & Intercepting RoutesRelated to Parallel and/or Intercepting routes.Related to Parallel and/or Intercepting routes.bugIssue was opened via the bug report template.Issue was opened via the bug report template.locked
Description
Link to the code that reproduces this issue
https://github.com/nickythorne/intercepting-routes-repro
To Reproduce
- Install deps
pnpm i
- Start application
pnpm run dev
- Visit route
http://localhost:3000/app/organisations/1/applications/1/environments/1/security-centre/assets/1
- Click "Trigger Intercepting Route" link
- Page redirects to page route, instead of the intercepted route
Current vs. Expected behavior
I have the following route configuration:
Here I have defined a @triage
slot that is rendered within the layout.tsx
Inside this slot, I have an intercepted route for the findings
route segment in the same route folder.
I have a link inside the page.tsx
which redirects to the findings route segment, but I would expect the intercepted route to kick in here and display "From Findings Intercepted Route", instead of the actual route page "From Findings Page"
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10
Binaries:
Node: 20.9.0
npm: 10.1.0
Yarn: 1.22.21
pnpm: 7.33.4
Relevant Packages:
next: 14.2.1 // There is a newer version (14.2.2) available, upgrade recommended!
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
typescript: 5.4.5
Next.js Config:
output: standalone
Which area(s) are affected? (Select all that apply)
Parallel & Intercepting Routes
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
Metadata
Metadata
Assignees
Labels
Parallel & Intercepting RoutesRelated to Parallel and/or Intercepting routes.Related to Parallel and/or Intercepting routes.bugIssue was opened via the bug report template.Issue was opened via the bug report template.locked