Error: Insufficient params provided for localized pathname. #1093
Replies: 1 comment 2 replies
-
Thanks for the question, I'll move this to a discussion since it's a usage question and not a bug in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I've tried following the documentation and when trying to navigate to the my profile page, which is a dynamic localized path I get the following error:
The project compiles without issues, the error only appears when I try to navigate to the following dynamic localized path, using the "My Profile" button in my sidebar:
http://localhost:3000/en/user/[id]
The error comes up no matter the locale, even if I'm using the English locale.
Here is some of my code which I believe is relevant to the issue (also available in the reproduction repo):
I think that it is also important to mention that I also do a rewrite for the My Profile Page inside the next.config file, it was suggested to me to do that by either Claude or GPT 4, I can't remember exactly but here's how that rewrite looks and works:
I've tried solving it for the past 2 weeks with both Claude Opus and GPT 4 & 4o, based on the available documentation and examples and a similar closed thread issue here but all the suggestions offered either led to other errors or to the same error, and this is why I created this thread with the hope that someone may be able to tell what the issue is.
I'd like to mention 2 things:
Verifications
Mandatory reproduction URL
https://github.com/meJohnnyRobert/next-intl-minimal-reproduction/blob/main/src/app/%5Blocale%5D/user/%5BuserId%5D/page.tsx
Reproduction description
Steps to reproduce:
Expected behaviour
The expected behaviour is for the user to be able to access their profile page while the page would be using the correct dynamic localized path as set-up in the navigation.ts file and once the My Profile page is accessible and opens correctly for my language selector to correctly switch to the dynamic localized path as defined in the navigation.ts file as well.
At the moment I can't even test if the language selector/switcher works correctly with the My Profile Page because I can't even access the My Profile page because of the error mentioned above, but I can confirm that it does work correctly for my other localized paths which are not dynamic.
Beta Was this translation helpful? Give feedback.
All reactions