-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
Dynamic optional catch-all segments not working #917
Labels
bug
Something isn't working
Comments
True, I think there's a bug. This:
… should match when I need to investigate, thanks for the report! |
+1, I can confirm this bug occurs in my project as well. Thank you for investigating the problem. |
juanforlizzi
pushed a commit
to juanforlizzi/next-intl
that referenced
this issue
Jan 16, 2025
…g localized pathnames (amannn#925) Fixes amannn#917 This works correctly now: ``` "/items/[[...slug]]": { tr: "/ilanlar/[[...slug]]", en: "/items/[[...slug]]", }, ``` … should match when `/tr/ilanlar` is called.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I have folders such as
/items/[[...slug]]/page.tsx
.I also have the route added to navigation.ts as
However, when I visit /tr/ilanlar, the app shows a 404 page while /tr/ilanlar/test, /en/items/test, and /en/items renders perfectly.
I also tried the following with no luck.
Mandatory reproduction URL
https://codesandbox.io/p/github/itsberkelium/next-intl-bug-repro-app-router/main
Reproduction description
Steps to reproduce:
Expected behaviour
It should render without slug for both locales.
The text was updated successfully, but these errors were encountered: