Skip to content

Intercepting Routes not working as expected 14.2.1 #64766

@nickythorne

Description

@nickythorne

Link to the code that reproduces this issue

https://github.com/nickythorne/intercepting-routes-repro

To Reproduce

  1. Install deps pnpm i
  2. Start application pnpm run dev
  3. Visit route http://localhost:3000/app/organisations/1/applications/1/environments/1/security-centre/assets/1
  4. Click "Trigger Intercepting Route" link
  5. Page redirects to page route, instead of the intercepted route

Current vs. Expected behavior

I have the following route configuration:
Screenshot 2024-04-19 at 09 30 06

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

No one assigned

    Labels

    Parallel & Intercepting RoutesRelated to Parallel and/or Intercepting routes.bugIssue was opened via the bug report template.locked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions