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

routing_dev.yml triggers locale change #170

Open
jeroenvdgulik opened this issue Aug 26, 2015 · 2 comments
Open

routing_dev.yml triggers locale change #170

jeroenvdgulik opened this issue Aug 26, 2015 · 2 comments

Comments

@jeroenvdgulik
Copy link
Contributor

The call to _wdt route triggers a new locale update. If for instance your url schema is /nl/news but your browser is set to 'en_US', the "normal" request will set the locale to 'nl', but the dev route (without locale) will set the locale back to 'en_US', which in case you use a cookie will trigger 2 changes: first the correct 'nl', then the incorrect 'en_US'

@dbu
Copy link
Collaborator

dbu commented Aug 26, 2015

that would probably also affect any ajax calls that have no locale in the url.

but its strange, usually once the locale is determined and in the cookie, it should stick when no locale is explicitly found in the path/domain/whatever. could this problem be because of some specific setup you did?

@jeroenvdgulik
Copy link
Contributor Author

The problem is that it won't find a locale for the path guesser, but it will find a locale for the browser guesser, which is different than the cookie setting, thus triggering a change.

edit "fixed" the issues by giving cookie higher priority in the guesser list

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

2 participants