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

fix: don't detect locale from route when using no_prefix #1421

Merged
merged 1 commit into from Apr 1, 2022

Conversation

rchl
Copy link
Collaborator

@rchl rchl commented Apr 1, 2022

It was wrong to attempt to detect locale from route when using the no_prefix strategy.

Using no_prefix and visiting something like /EN/not-found has been handled incorrectly if there was locale en defined. We would use the upper-case EN for the locale which would then not match in certain places causing localeProperties to not be set appropriately, for example.

@rchl rchl changed the title Don't attempt to detect locale from route when using no_prefix fix: don't detect locale from route when using no_prefix Apr 1, 2022
@rchl rchl merged commit 609782f into main Apr 1, 2022
@rchl rchl deleted the fix/detect-route-locale branch April 1, 2022 12:40
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

Successfully merging this pull request may close these issues.

None yet

1 participant