Skip to content

Dynamic segment parallel route does not match static normal route #62656

Description

@michaelschufi

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/parallel-routes-params-forked-jtjfkr

To Reproduce

  1. Open the sandbox
  2. Click on the second link
  3. Observe the parallel route slot not matching.

Current vs. Expected behavior

I expected the dynamic route folder structure inside the @parallel slot @parallel/test/[testParam] of the slot to match the /test/static route, like a "normal" implicit children-slot folder structure would.

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 14.1.1-canary.78 // Latest available version is detected (14.1.1-canary.78).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A

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

App Router, Routing (next/router, next/navigation, next/link)

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

next dev (local), next start (local)

Additional context

I found this, while looking for a workaround for #62539. Since it would've made that bug a bit easier to work around.

I've tried it on the current stable version of next@14.1.0 as well, where it also doesn't work.

Note: I haven't tested it in deployed environments, because that seems out of scope.

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