Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where, after switching the website language from French to English using the menu, the navigation does not stay in English. Instead, it redirects to the French version of the page, even if an English translation is available.
Solution:
We recommend checking the browser settings to ensure it is not overriding the website's language preferences, which might cause the site to revert to French. Additionally, verify the WPML language switcher settings and ensure that the 'redirect to the home page if translations are missing' option is not enabled. This setting can sometimes cause unexpected redirections to the default language.

If these steps do not resolve the issue, it might be due to a configuration that is no longer relevant or might not apply to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum for further assistance.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by michaell-90 1 week, 2 days ago.

Assisted by: Bobby.

Author Posts
December 13, 2024 at 6:18 pm #16512408

michaell-90

Background of the issue:
I am trying to ensure that when I switch languages on my website, the navigation remains in the selected language. My website's default language is French, and I want to switch to English using the menu. If a page is translated into English, I want to be redirected to the English version. If a page is not translated, it should redirect to the default French version.

Symptoms:
When I switch to English and click on a link to a page that is translated, it redirects me to the default French version instead of the English version.

Questions:
How can I ensure that navigation remains in the selected language using WPML?
What settings do I need to adjust in WPML to redirect to the translated page if it exists?

December 14, 2024 at 12:29 am #16512879

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hello,

Is there a specific page where I can reproduce this issue?

When I visited your site and switched to EN, I tested all the menu items and all took me to their EN versions without any redirects to FR.

Please let me know if I am missing a step to reproduce this behavior.

December 23, 2024 at 2:44 pm #16540784

michaell-90

Hi,

Sounds good, it's probably because my browser is in a different language so it keeps changing back and forth. Thank you for confirming.

Have great holidays.

Best