Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Redirect behavior if prefix_default_language = False (port forwa…
…rd of #6851 to v4) (#7527) * fix: prefix_default_language = False redirect behavior fixes (#6851) * make is_language_prefix_patterns_used check for non-empty language_prefix insted of doing isinstance check on pattern only * if prefix patterns are used get_language_from_request normally, otherwise default * updated CHANGELOG * remove previous details request_language change and replace it with page model cache workaround * fix tests * if prefix patterns are used get_language_from_request normally, otherwise default * add language check workaround to menus as well Co-authored-by: Radosław Stępień <rstepien@cloudferro.com> Co-authored-by: Florian Delizy <florian.delizy@gmail.com> * Fix flake8 issue --------- Co-authored-by: Radek Stępień <rstepien@protonmail.com> Co-authored-by: Radosław Stępień <rstepien@cloudferro.com> Co-authored-by: Florian Delizy <florian.delizy@gmail.com>
- Loading branch information
1 parent
ee4e7d7
commit bdab9e9
Showing
4 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters