Skip to content
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

[Parallel and Intercepted Dynamic Routes] Will intercept normal routing #65492

Open
lmy1991 opened this issue May 8, 2024 · 1 comment
Open
Labels
bug Issue was opened via the bug report template. Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes.

Comments

@lmy1991
Copy link

lmy1991 commented May 8, 2024

Link to the code that reproduces this issue

https://github.com/lmy1991/nextgram

To Reproduce

1.Click on the search block
2.Search route intercepted

Current vs. Expected behavior

1.Click on the search block
2.The search route will not be intercepted and will redirect normally to the search details page

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 32495
  Available CPU cores: 16
Binaries:
  Node: 18.17.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.3.0-canary.22 // There is a newer canary version (14.3.0-canary.45) available, please upgrade!
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.5
Next.js Config:
  output: N/A
 ⚠ There is a newer canary version (14.3.0-canary.45) available, please upgrade!
   Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
   Read more - https://nextjs.org/docs/messages/opening-an-issue

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

@lmy1991 lmy1991 added the bug Issue was opened via the bug report template. label May 8, 2024
@github-actions github-actions bot added the Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes. label May 8, 2024
@clearly-outsane
Copy link

clearly-outsane commented May 19, 2024

I'm having this issue. Paralle routes with intercepts for dynamic routes intercepts everything in that route even though it should be redirect to another place. For example:

test
--[id]
----page.tsx
--@parallel
----(.)[id]
------page.tsx
--other
----page.tsx

with the above folder structure ^ . When you're on /test and navigate to /test/other it intercepts it even though it should only intercept /test/[id] routes

That's a pretty huge bug in my opinion and I hope someone will look at this urgently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes.
Projects
None yet
Development

No branches or pull requests

2 participants