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.
Tagged: Exception
This topic contains 14 replies, has 2 voices.
Last updated by Dražen 3 months, 2 weeks ago.
Assisted by: Dražen.
Author | Posts |
---|---|
August 16, 2024 at 5:48 am #16076725 | |
antonW |
Background of the issue: Symptoms: Questions: |
August 16, 2024 at 9:18 am #16077588 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for contacting us. 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. Let me know how it goes. Regards, |
August 16, 2024 at 2:03 pm #16078540 | |
antonW |
Hi Drazen, We use the paragraph in many places on the website and also have links where it does work correct... So it is weird that for a new page we added it does not... Please advise. Thanks and regards Anton |
August 16, 2024 at 2:10 pm #16078564 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello Anton, 1) Can you please check if it works as I suggested above? 2) Please also check if the issue still happens when you create a new page. 3) Does the same issue happen if you are using only Elementor PRO and WPML plugins, all other disabled and you add a new page link? Let us know. Thanks, |
August 16, 2024 at 2:31 pm #16078639 | |
antonW |
Hi Drazen, I added a button with the same (dynamic internal) link and it works correct: 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. hidden link |
August 19, 2024 at 6:10 am #16082118 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for getting back. 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. Related docs: - https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/ This is the best I can do at this point and suggest 2 method we recommend. Hope this helps, |
August 21, 2024 at 12:16 pm #16090354 | |
antonW |
Hi Drazen, Please investigate further, because it worked without link translation before and the links we previously added are still working correct. There would be a lot of work involved in translating all the text links and for me this sounds like a bug. Gr |
August 21, 2024 at 12:30 pm #16090376 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, sure, so I have tried to reproduce the issue as you have explained and it works just fine on the test site: - hidden link 1) Does the issue still happen for you when you are using only Elementor and WPML plugins, and all other plugins are disabled? 2) Please try to reproduce the same issue on our test site and share the steps with me: Login link: Regards, |
August 26, 2024 at 3:17 pm #16105444 | |
antonW |
Hi, The original setup did not work because we use the classic editor and the translations were not updated correctly. So I create Page 2 - EN with a link to the Page Link - EN. As you can see it works correctly. Please advise... Kind regards, Anton |
August 26, 2024 at 4:11 pm #16105945 | |
antonW |
I created a new staging environment: hidden link I created 2 pages with translations. As you can see, the dutch page goes to the english link and does not rout to the dutch page. Hope we can get this sorted with this site ready to troubleshoot! Gr |
August 27, 2024 at 5:32 am #16107307 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello Anton, thanks for getting back. Before we continue let first please clear a few things up: 1) You tested on the test sandbox, and there it works fine and issue is not happening, correct? 2) You have tested on your website, with the WP default theme and only Elementor and WPML plugins, all others disabled and there issue happen? Let me know. Thanks, |
September 2, 2024 at 3:04 pm #16132593 | |
antonW |
Hi, 1) it works correct on the WPML sandbox. 2) it is not working correct on hidden link where I switched off all plugins. Please check these 2 pages: If you go here and click the link: You go to the default language instead of the Dutch translation. Hope we can resolve this so the website can go live. It's the last issue we have... Thanks and regards, |
September 3, 2024 at 6:19 am #16134003 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello Anton, please share the access details of your website, so I can log in and take a look. I’m enabling a private message for the following reply. We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
- Please backup the site files and database before providing us access.
Thanks, |
September 5, 2024 at 6:06 am #16143151 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks. I have tested, but couldn't find the culprit, so I have escalated this to our 2nd tier for further check and advice. I will update you soon. Regards, |
September 5, 2024 at 7:01 am #16143289 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, 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 Please check. Regards, |