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

Use root language if Accept-Language locale does not exist as Pimcore language #63

Conversation

BlackbitDevs
Copy link
Contributor

@BlackbitDevs BlackbitDevs commented Jul 8, 2020

Q A
Branch? dev-master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets Resolves #62

When the browser only sends language-dialects and in Pimcore only the root language does exist the geo redirection did not work.
Example:
Browser sends Accept-Language: de-de (and not de)
Pimcore only has language de
In this case redirect did not work.

I added an additional loop to ensure that those generated root languages which are actually not present in the Accept-Language header are appended after the languages of the header. This way the original languages always have higher priority than those generated fallbacks

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.

No redirect with Safari browser
2 participants