Skip to content
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

Issue with default path #487

Open
nesbtesh opened this issue Sep 8, 2020 · 0 comments
Open

Issue with default path #487

nesbtesh opened this issue Sep 8, 2020 · 0 comments

Comments

@nesbtesh
Copy link

nesbtesh commented Sep 8, 2020

My project uses three language in the url as the default path, "/es/", "/en/", "/pt/" the first time you go into the application everything works fine because the request is done from the server but if you visit the website again without adding the lang (/es/) after the root domain it gives me 404 because the page doesn't exist.

Is there a way to create a rule that the start point is the language you last visited?

Example:
First request: If you visit: www.domain.com it will do a 302 to www.domain.com/es/
Second request: If you visit www.domain.com it will give me a 404 because the root doesn't exist and the request will go to the SW instead of the server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant