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

App router routing to dynamic route instead of predefined route in Next.js #65725

Open
MiaoMint opened this issue May 14, 2024 · 3 comments
Open
Labels
bug Issue was opened via the bug report template. Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes.

Comments

@MiaoMint
Copy link

MiaoMint commented May 14, 2024

Link to the code that reproduces this issue

https://github.com/MiaoMint/nextgram

To Reproduce

  1. Start the application in development (next dev)
  2. Click New

Current vs. Expected behavior

Following the steps in the previous section, I expected to jump to a predefined route, but instead I observed a dynamic route.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 22.6.0: Mon Feb 19 19:43:41 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_ARM64_T8103
  Available memory (MB): 8192
  Available CPU cores: 8
Binaries:
  Node: 18.20.2
  npm: 10.5.0
  Yarn: N/A
  pnpm: 9.1.0
Relevant Packages:
  next: 14.3.0-canary.61 // Latest available version is detected (14.3.0-canary.61).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A

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

Parallel & Intercepting Routes

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

next dev (local), next build (local), next start (local), Vercel (Deployed)

Additional context

No response

@MiaoMint MiaoMint added the bug Issue was opened via the bug report template. label May 14, 2024
@github-actions github-actions bot added the Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes. label May 14, 2024
@icyJoseph
Copy link
Contributor

This works fine in latest canary, I see you have 14.0.5, but the latest release is 14.2.3, please try with a latest version.

@mefengl
Copy link

mefengl commented May 14, 2024

@icyJoseph Where is the example that works fine, the link you provided still has issues...

@icyJoseph
Copy link
Contributor

🤔 that was working... I should've taken a screenshot. Unfortunately, now I can confirm it is broken

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

3 participants