Skip to content

Redirect the user to the correct locale via IP #2797

Closed Answered by Applelo
Applelo asked this question in Q&A
Discussion options

You must be logged in to vote

So I have found a workaround, I don't know if it is really clean. But I have created a server route at the root server/routes/index.ts and manage the redirection here with the sendRedirect function from h3. So I can implement my logic here (look for a cookie, look for the ip region and default locale).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Applelo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant