Skip Navigation

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

Problem:
The client is experiencing an issue where switching between the profile and the main page results in being taken to different language versions of the site. Specifically, navigating from the Ukrainian or Russian version to the main page redirects to the English version instead of staying on the same language.
Solution:
1. We found that the menu links for the profile were not translated. To resolve this, we recommend creating a Custom Link in the menu for the profile page in each language. This can be done by visiting the profile in each language, copying the page URL, and then adding it as a Custom Link in your menu.
2. If clicking the profile icon redirects to the profile in the default language, this is due to the theme generating the link dynamically based on the user's session. This behavior is not translatable by WPML and would need to be addressed by the Theme Author.

If this solution does not seem relevant to your issue, please open a new support ticket with us.

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 23 replies, has 2 voices.

Last updated by Lucas Vidal de Andrade 1 year, 1 month ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
January 2, 2024 at 5:15 pm #15144330

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello and happy new year 🙂

I still haven't got feedback. I'll directly talk to my colleagues to check if they have news. I will keep you posted, thanks for being patient.

January 3, 2024 at 8:08 am #15145414

alexeyK-12

Thank you very much! We look forward to hearing from you =)

January 5, 2024 at 8:21 am #15153430

alexeyK-12

Hello!
Have you received a response from your colleagues?
Аny news for us?

January 8, 2024 at 12:11 pm #15160189

alexeyK-12

Hello!
When can we expect any results?
The solution to this problem is very important for us.

January 9, 2024 at 1:08 pm #15164561

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

It appears that this specific link is set up via a 3rd party plugin, via JS. Currently, the developers are looking into the issue on a copy of your website, I'm sorry it is taking that long, but our queue is a bit busy due to the holidays. I'll update you as soon as I have feedback.

Thank you for your patience.

January 10, 2024 at 1:24 pm #15169151

alexeyK-12

Hello!
We sincerely thank you for your work and understand your busy schedule.
We would be very grateful if you would let us know more specific terms in which this problem can be solved, the planning of our team's work depends on it. For example, one week or several days...
It is very important for us!
Thanks for understanding!

January 10, 2024 at 2:52 pm #15169528

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I got feedback from our development team. They were having issues reproducing the error, as it was working on a local copy they made. After re-implementing the solution I suggested you (to translate the menus and clear the cache), the website is working as expected.

I suggest you re-implement the solution to see if it works this time (it should, as the issue seems to be cache related).

1) Go to Appearance > Menus and select the Loggedin Menu UA;
2) On the bar above the menu items select a second language (Ukranian, for example) by clicking on the pencil next to it;
3) Select the first menu item "<span class="vicon vicon-home"></span>Головна";
4) Add "/uk/" to the end of the link, to indicate it must be the home page in Ukranian;
5) Do the same for Russian, adding /ru/;

Please share your results with me. Unfortunately, I cannot give you an exact dead-line, as we couldn't really reproduce the issue. If the recommended steps don't work, I'll ask for site access to make a fresh copy of your website, so we can maybe reproduce the issue.

I apologize for the back and forth, but in this case, it was difficult to reproduce the error + the busy queue we are having.

January 11, 2024 at 12:10 pm #15174248

alexeyK-12

Hello!
Thank you very much for the work done!

When switching from the personal account to the main page of the site, the language does not change - that's great! But when we go from the main page to the personal account again - there is still a problem...

You can check the video: hidden link

January 15, 2024 at 11:30 am #15184627

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for the feedback 🙂 After further investigating your issue, we found out a few things:
1. The menu links for the profile weren't translated. So it was the same issue as before. Please add the proper link for the profile. To solve this, you can visit the profile in each language, copy the page URL and create a Custom Link to it in your menu. (see attached image as an example)
2. When clicking the profile icon itself, you might be taken to the profile in the default language. That happens because the theme generates that link dynamically, based on the user's session. Unfortunately, that's not translatable by WPML and can only be solved by the Theme Author.

Please tell me if #1 works for you and if you need any assistance.

Menus _ TPM _ Total Project Management _ WordPress.jpeg