infinite redirection for children of static front page with lang-code as name
-
for plugin version 1.7 to 1.7.2 we have the problem, that every child of the static front page gets in an infinite redirect loop
settings:
-> The language is set from content
-> The front page url contains the language code instead of the page name or page id
(nothing else enabled/checked)
the permalink structure is: /%category%/%postname%/
but there is no problem for posts, just for pagesthe front page’s name is ‘en’
there is a child:
en->child1->child2
the links are correctly generated (en/child1/child2), when following them, they are redirected in a loop:
en/child1/child2 -> child1/child2 -> en/child1/child2There is a fix for the front page with version 1.7.x
https://github.com/wp-plugins/polylang/commit/77d0364dab173b3179527064a74896d2c00b5768but could it be that it is also necessary to check if the page is a child of the front page?
I have also played with defining
PLL_CACHE_LANGUAGES or PLL_CACHE_HOME_URL to false – did not help
deactivated the “The front page url contains the language code instead of the page name or page id”, which did not help
checking ‘The language is set from the directory name in pretty permalinks’ adds an additional ‘en’ to all links – at least the redirect loop is gone and en/child1/child2 is redirected to en/en/child1/child2Thanks a lot
- The topic ‘infinite redirection for children of static front page with lang-code as name’ is closed to new replies.