Replies: 1 comment 7 replies
-
I'd love to know that as well. I wanted to move an existing app over to NextJS and its URL structure comprises a [country] dynamic segment before the [locale] segment. I see no way to do that at the moment. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I'm working on a website that needs to have a region segment before locale and handle redirects accordingly.
Like
/page
or/en/page/
should lead to/us/en/page
.It might work with new custom prefixes, but the problem is, we get region from the web server, so.. we need to somehow set the correct one. Moreover, region doesn't affect our language, we can have
/es/es-mx
(don't ask, I know, I know).So, how should I handle redirects in this case? I am looking at this docs section but can't figure out how to handle it in links, for example.
Beta Was this translation helpful? Give feedback.
All reactions