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

Route intercept does not work with generateStaticParams in layout #989

Open
3 tasks done
IikkaWinter opened this issue Apr 9, 2024 · 2 comments
Open
3 tasks done
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@IikkaWinter
Copy link

Description

Route intercept seizes to work once generateStaticParams along with unstable_setRequestLocale are added to [locale]/layout.tsx. The params passed to the route group (modal) does not include locale.

NOTE: this does not manifest when running on local - only in prod mode.

Verifications

  • I've verified that the problem I'm experiencing isn't covered in the docs.
  • I've searched for similar, existing issues on GitHub and Stack Overflow.
  • I've compared my app to a working example to look for differences.

Mandatory reproduction URL

https://github.com/IikkaWinter/nextagram-intl

Reproduction description

Steps to reproduce:

  1. Clone my fork of nextagram-intl example repo
  2. npm run build and npm start to start in prod mode
  3. Open landing page and notice that the prefetched photo server components are responding with 404
  4. Click on the picture and the photo root route is rendered instead of the modal
  5. Observe the console log on server taking note on missing locale in modal params

Expected behaviour

The picture modal should be shown as when running in dev

@IikkaWinter IikkaWinter added bug Something isn't working unconfirmed Needs triage. labels Apr 9, 2024
@amannn
Copy link
Owner

amannn commented Apr 11, 2024

Possibly related to #255, maybe also #663.

@tonyabracadabra
Copy link

Any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

3 participants