I have another issue that I can’t seem to get past.
I’m wanting to use the following settings:
Add URL Prefix
Add URL prefix to the homepage
Hide the prefix for default language
We have 2 languages, and I only want the ‘fr’ to show in the url when it is the active language. Great that these settings are available to allow for this.
I’m having an issue, however, where the language switcher is not working when these settings are enabled.
I have tried:
a) just switching the URL to add /fr to the beginning if switching to french
b) using the included language switcher with style=“links”.
I have noticed that clicking on the link only does not change the language.
The cookie does value of exp_publisher_site_language doesn’t change when the page reloads. If I manually change the URL and add in or remove the ‘fr’ segment, it works.
This is puzzling to me. Am I missing a step? Do I need to manually check if the cookie is set and redirect to the ‘fr’ segment after the built in switcher link and Action are run?
My dynamic language switcher links look like this:
Please advise on how to get the switcher to work properly.