-
Any ideas how to make non-english urls work with next.js? I reported this some time ago and found a workaround way to make it work, but now it's broken again. #9804 Problem I have non-english urls like this:
Url encoded with encodeURI('http://localhost/тест') looks like this:
Pages filename is:
Previous attempts to fix this In some older next.js versions i was able to make it work like this:
Or even this for all the routes
But after some updates this solutions stopped to work. Current behavior and attempts to make it work
With rewrites and file rename:
Adding encodeURI:
Any ideas to try is welcomed. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Made it to work after Link change like this:
Only problem is that styled-components when rendered SSR gives me error, but i can live with it: |
Beta Was this translation helpful? Give feedback.
-
To early to be happy, dynamic paths doesn't work with client navigation, only SSR:
|
Beta Was this translation helpful? Give feedback.
-
You can solve this adding to next.config.js:
|
Beta Was this translation helpful? Give feedback.
You can solve this adding to next.config.js: