Skip to content

[BUG] intercepting + parallel routes do not work #957

@nwong212

Description

@nwong212

Describe the bug

The behavior of modals set up using intercepting/parallel routes does not work in the preview build, but works as expected in dev.

When client-side navigating to /modal using a <Link> tag, opens the normal route and returns a 404 error for the intercepting parallel route located in @modalName/(.)modal

This happens on the live deployment as well.

Steps to reproduce

repo: https://github.com/nwong212/bug-modal-routes-cf-opennext

works as expected using pnpm dev

when pnpm preview is run, works incorrectly as described.

Expected behavior

behavior described in nextjs documentation

Modal opens up as a parallel route overlay when client-side navigating in production build.

@opennextjs/cloudflare version

1.3.0

Wrangler version

4.44.0

next info output

npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
Using vars defined in .dev.vars
npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
/bin/sh: yarn: command not found

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6041
  Available memory (MB): 36864
  Available CPU cores: 14
Binaries:
  Node: 24.7.0
  npm: 11.5.1
  Yarn: N/A
  pnpm: 10.15.1
Relevant Packages:
  next: 15.5.6 // Latest available version is detected (15.5.6).
  eslint-config-next: N/A
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.9.3
Next.js Config:
  output: N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions