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

Catch all route within dynamic segment breaks dynamic params #69679

Open
timfuhrmann opened this issue Sep 4, 2024 · 0 comments
Open

Catch all route within dynamic segment breaks dynamic params #69679

timfuhrmann opened this issue Sep 4, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template. Navigation Related to Next.js linking (e.g., <Link>) and navigation.

Comments

@timfuhrmann
Copy link
Contributor

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/optimistic-brahmagupta-qcqflx

To Reproduce

  1. Start dev server
  2. Change locale to be anything but en
  3. Page is being rendered / no 404 even though there is dynamicParams = false on the locale's segment level

Current vs. Expected behavior

Following the steps from the previous section, I expected /de to render a 404, as dynamicParams is false and de ist not listed within the segment's static params. Somehow the nested catch all route breaks this behaviour and makes it fall back to a dynamic behaviour, trying to render the given locale, running into errors because the locale does not exist.

Provide environment information

Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 15.0.0-canary.140 // Latest available version is detected (15.0.0-canary.140).
  eslint-config-next: N/A
  react: 19.0.0-rc-7771d3a7-20240827
  react-dom: 19.0.0-rc-7771d3a7-20240827
  typescript: 5.3.3
Next.js Config:
  output: N/A

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

Navigation

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

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

Additional context

No response

@timfuhrmann timfuhrmann added the bug Issue was opened via the bug report template. label Sep 4, 2024
@github-actions github-actions bot added the Navigation Related to Next.js linking (e.g., <Link>) and navigation. label Sep 4, 2024
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. Navigation Related to Next.js linking (e.g., <Link>) and navigation.
Projects
None yet
Development

No branches or pull requests

1 participant