Home›Support›English Support›[Resolved] Link in elementor paragraph element does not go to the translated page
[Resolved] Link in elementor paragraph element does not go to the translated page
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to create a link in an Elementor paragraph element to another internal page, but the link redirects to the page in the default language instead of the translated version. Solution: First, ensure that both your site and home URLs use HTTPS instead of HTTP. You can change this in your WordPress settings by navigating to Settings > General and updating the URLs to use 'https'. Next, re-translate the page using the Advanced Translation Editor (ATE). This should resolve the issue and make the link direct to the correct language-specific page.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum 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.
Background of the issue:
I am trying to create a link in the text of an Elementor paragraph element to another internal page. The issue can be seen on this page: hidden link. I expected the link 'zwart' to display the URL in the current selected language: hidden link.
Symptoms:
The link goes to the page in the default language: hidden link.
Questions:
Why does the link in the Elementor paragraph element not go to the translated page?
How can I ensure the link directs to the correct language-specific page?
I am not sure which Elementor widgets are you using for this, it could be that the one doesn't have the correct WPML XML code, that tells what and how it is translating.
If the issue happens with the default Elementor paragraph, then please try to use dynamic links for internal links from Elementor:
- hidden link
That way if the page is translated it should automatically adjust. Also if you are adding this via some Elementor template, make sure the template is also translated.
I added a button with the same (dynamic internal) link and it works correct: hidden link
I added a new text editor element and it goes to the default language.
We use this method all across the website without this issue. We never have to translate the link in the translation editor. This is an example of a link that works correctly. Page is in German, link is for the default and clicking the link you go to the German page.
I am not sure how it worked before, but as fare I know links should be translated manually inside ATE editor as explained in our docs, or if you wish they are adjusted automatically you should use the dynamic links, which I recommend to avoid any issues.
- Please backup the site files and database before providing us access.
- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.
seems your site and home URL are http and not https and you access the site on https. I have changed it to https from Settings > General to https, and re-translated the page via ATE editor. Seems to work fine now: hidden link