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

Closed
3 tasks done
IikkaWinter opened this issue Apr 9, 2024 · 3 comments
Closed
3 tasks done
Labels
bug Something isn't working Stale 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?

Copy link

github-actions bot commented Jun 1, 2024

This issue has been automatically closed because there was no recent activity and it was marked as unconfirmed. Note that issues are regularly checked and if they remain in unconfirmed state, they might miss information required to be actionable or are potentially out-of-scope. If you'd like to discuss this topic further, feel free to open a discussion instead.

@github-actions github-actions bot added the Stale label Jun 1, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

3 participants