Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 19 replies, has 1 voice.

Last updated by Andreas W. 17 hours, 53 minutes ago.

Assisted by: Andreas W..

Author Posts
May 1, 2025 at 7:08 am #16985671

antonW

Background of the issue:
I am trying to open a translated page from the mega menu on the French version of my site at hidden link. Specifically, I want to access the 'Chambre d’hôtel - Plateaux de courtoisie' page.

Symptoms:
When I click the link, the default English page is opened instead of the correct translated page. This issue has occurred before and seems to be recurring.

Questions:
Why does the link open the default English page instead of the translated French page?
How can I ensure the language does not change when selecting an internal link?

May 1, 2025 at 9:03 am #16986015

antonW

Is this the thing to do:
https://wpml.org/forums/topic/internal-links-in-page-are-not-translated-automatically/

May 2, 2025 at 9:16 am #16988701

antonW

This is a production issue and the above internal link update did not work. Please advise!

May 3, 2025 at 4:04 pm #16992113

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The problem with Mega Menus often is, that WPML > WP Menus Sync will not be able to automatically adjust such options.

In this case, you will need to go to Appearance > Menus and use the language selectors to make sure to edit each menu and their mega menu options manually in each language.

Guide:
https://wpml.org/documentation/getting-started-guide/translating-menus/#translate-menus-different-per-language

If this will not solve the issue, please let me know.

Best regards
Andreas

May 5, 2025 at 10:05 am #16995599

antonW

Hi Andreas,
Thanks for the reply, but this seems totally unrelated to the issue.
We have setup mega menus per langauge and associated the elementor templates per language. Templates have been translated. The mega menus contain internal site links that are directed automatically for the current selected language. This has been working fine for a long time. Suddenly it stopped working (maybe due to a release update) and now the link directs not to the selected language, but to the default language.

It seems a structural issue and affects all links on all the mega menus.

I pushed a change on the mega menu template page and refreshed the translations, but this has no effect.

Please investigate the issue and advise how to proceed.

May 7, 2025 at 12:07 am #17003933

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.

You can find the required fields below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may need to install a plugin called "All In One WP Migration" to create a copy of the website so I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or a copy of the website from your server for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/account/websites/.

If you are unable to provide such a copy of the website for testing, please let me know on this ticket.

The private reply form looks like this:
hidden link

Click "I still need assistance" the next time you reply.

Video:
hidden link

Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.

Best regards,
Andreas

May 7, 2025 at 9:16 am #17005249

antonW

I noticed the issue relates to the Icon List element that we used to setup the mega menu's. There is an internal URL set for the individual entries of the icon list.

If I change the Internal URL to an actual URL and update the page translations, that solves the issue and the correct translated URL is displayed.

Please continue the investigation on the staging10, while I apply this temp fix in the live site for the customer.

May 7, 2025 at 12:01 pm #17006308

antonW

The fix does not seem to work for the image URL link.

May 7, 2025 at 11:06 pm #17009128

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I have adjusted the config at WPML > Settings > Custom XML Configuration and translated the Bathroom Mega Menu Template into Dutch.

It seems this solved the issue.

Please try now editing these custom links on other templates and apply the translations again.

May 8, 2025 at 8:48 am #17010290

antonW

Hi, I just tested the staging10 and the link still opens the page in the default language.

May 8, 2025 at 2:00 pm #17012463

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Since I added the config, you will need to edit the original templates, save them again, and complete the translation.

This solved the issue for the "Badkamer" section:
hidden link

May 12, 2025 at 2:53 pm #17023594

antonW

I checked and it is still not working.
I changed the internal links to hard coded URLs as a work-a-round, that's why it is working on the live website.
After changing the link back to internal link structure, it directs to the default language as before.

Please apply the fix in staging10 first before making changes to the live site.

May 13, 2025 at 3:07 pm #17028758

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

If the issue occurs only when using the "Internal link" option, my provided workaround will not solve the issue.

I will try to recreate this issue on a new test site and then get back to you.

May 15, 2025 at 1:05 am #17034704

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I tried to recreate the issue using an Icon List with an Internal URL for content linking to a WordPress post, once to a post directly and another time using a Section template.

The issue does not occur here:
hidden link

I would like to ask you to use the following link to log into the test site and try to recreate the issue. It might be advisable to install the latest version of the Astra Theme and to install the Astra Pro plugin to try to recreate the issue.

One-Click-Login:
hidden link

May 16, 2025 at 9:58 am #17040776

antonW

The issue relates to the Mega Menu that has been formatted using an Elementor template. The test site does not have these components. Regular links on the site work correct, it is just these menu links that do not work correctly.

Please continue the issue in the staging10 site I setup for you.