Redirect to the default language issue
-
Hi, picture this scenario:
My website has two languages: italian (default) and english.
My browser is in english.
These are my polylang setting:
– “The language is set from content”
– “Hide URL language information for default language” is activated
– “Remove /language/ in pretty permalinks”
– “The front page url contains the language code instead of the page name or page id” is activated
– “When the front page is visited, set the language according to the browser preference”Now: when I access to the website, it correctly switches to the english version with the /en/ permalink.
At this point, there is no way to be redirected to the italian version of the website. I need to use in the menu a manual link towards the italian homepage (not the language switcher), but if I put a link to the root of the website it automatically redirects to the english version (because of the “When the front page is visited, set the language according to the browser preference” option activated), and if I put a link to the /it/ permalink address, it says that the page doesn’t exist (because of the “Hide URL language information for default language” option activated).Using the language switcher works fine, even if it apparently links to the root of the website as I do manually, but I guess it is because it calls some other function to switch the language. Since I cannot use the language switcher, is there a way to address this issue?
Thanks
Daniele
- The topic ‘Redirect to the default language issue’ is closed to new replies.