endless redirect if browser language is not a cms language #1549

Closed
stefanfoulis opened this Issue Dec 6, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@stefanfoulis
Contributor

stefanfoulis commented Dec 6, 2012

This occurs if the Browser Accept-Language is not one of the languages configured for the cms as active language. And djangos get_language_from_request was called previously with something like SettingsOverride (here) where LANGUAGES is overridden with a language we don't want. Django optimises with a cache in a global object that then will return languages actually not in LANGUAGES.

I have a patch. Pull request will follow.

@ghost ghost assigned stefanfoulis Dec 6, 2012

stefanfoulis added a commit to stefanfoulis/django-cms that referenced this issue Dec 18, 2012

stefanfoulis added a commit that referenced this issue Dec 20, 2012

Merge pull request #1566 from stefanfoulis/feature/issue-1549-endless…
…-redirect-with-setting-overrides


fixes #1549 endless redirect if browser language is not a cms language
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment