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?
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.
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.
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.
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.
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.
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.
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.
The topic ‘[Closed] Link does not open correct translated page’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.