Skip Navigation

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

Problem:
The client reported that the flags in the navigation menu were not synchronizing correctly. When clicking on a flag for another language on various pages, it redirected to a random page in that language instead of the correct translation.
Solution:
We first suggested checking our documentation on translating menus, which can be found here: https://wpml.org/documentation/getting-started-guide/translating-menus/
Upon further investigation, we discovered that the language switchers function correctly when the footer language switcher is enabled. We asked the client to confirm where the navigation menu language switchers were added, as we were unable to inspect or edit them.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your 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 further assistance is needed, please open a new support ticket at WPML support forum.

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.

This topic contains 10 replies, has 0 voices.

Last updated by Gilbert 3 weeks, 2 days ago.

Assisted by: Kor.

Author Posts
May 12, 2025 at 5:40 am #17020974

Gilbert

Good morning Kor,
Thank you for your last message. We have updated all of these products, and it has slightly improved the situation.
That said, the translation menu is still not working properly. Most pages either link to the wrong translation or simply redirect back to the French homepage.

We really do not know why or when things stopped working, as we had never experienced any real issues before.

Your help is very much appreciated.

May 12, 2025 at 3:04 pm #17023742

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. Please check out this documentation that explains about how to translate the navigation menu https://wpml.org/documentation/getting-started-guide/translating-menus/

Let me know if this works for you.

May 12, 2025 at 11:50 pm #17024799

Gilbert

Hello Kor,
Thank you for opening this new ticket.

I believe there might be a misunderstanding regarding the issue we are currently facing. The problem is that the flags in the navigation menu are no longer synchronizing correctly. When visiting most pages and clicking on the flag for another language, it redirects to a random page in that language instead of the correct translation.

As an example, you can test any of the submenu pages under "For Rent" or "For Sale" and try switching the language. You will notice that it redirects you to a random property instead of the equivalent list.

Thank you for looking into this issue.

May 13, 2025 at 5:52 pm #17029391

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I can see the issue now. You're referring to the language switcher. I will escalate this further to our 2nd Tier Support for further investigation and I will come back to you as quickly as possible.

May 14, 2025 at 7:48 pm #17034283

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your patience. While preparing the report, I noticed that the language switchers function correctly when the footer language switcher is enabled. You can test it here: hidden link (scroll to the bottom to see the language switcher)

Could you please let me know where the navigation menu language switchers were added? I'm unable to inspect or edit them on my end.

May 14, 2025 at 11:23 pm #17034537

Gilbert

Good morning Kor, thank you for your message.
Indeed the switcher in footer menu seems to work correctly. I added the switcher again the navigation menu and it doesn't work well while the footer one does !!!
You can check it out on this example here:

hidden link

Can it be a caching issue?

Footer Menu correct link.png
Nav Menu Wrong link.png
May 15, 2025 at 12:27 pm #17036865

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Could you tell me where you added the language switcher?

I tried making adjustments in WPML > Languages > Menu language switcher, and it's not affecting the frontend.

May 16, 2025 at 12:08 am #17038997

Gilbert

Good morning Kor,
I just go to the WPML / Languages and edit the Menu Language Switcher.

I just deleted and added the menu, and it's working. However, I noticed that the first page you visit will have the correct translation, but from there on, the link will remain the same as the first page. Could this be a caching issue?

Thank you for your patience.

ANmLDnm0aP.png
May 16, 2025 at 1:31 am #17039064

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've tried editing the language switcher shown in your attached screenshot, and the changes did not take effect. Not sure how it worked for you.

Which link are you referring to? You mentioned cache, could you try using another browser and see if it works for you?

May 16, 2025 at 2:14 am #17039130

Gilbert

Hello again Kor,
So to fix this issue, I decided to remove the footer and navigation menu switcher and just add a custom floating one to the left side of the website which worked now and it is translating correctly.
We can close this ticket now.

Thank you for all your help and patience :))

WRxvKycyRd.png
May 16, 2025 at 6:56 am #17039481

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for letting me know. I will mark this ticket as resolved. Have a great day!

May 21, 2025 at 5:09 am #17054953

Gilbert

Thank you Kor, I will close this ticket.