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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Madrid (GMT+02:00)

This topic contains 9 replies, has 1 voice.

Last updated by Marcel 2 days, 18 hours ago.

Assisted by: Marcel.

Author Posts
June 9, 2025 at 5:03 pm #17119157

felicianoE-2

Background of the issue:
I recently changed the language URL format to use different domains per language. I am trying to ensure that internal links keep users in the same language when they are browsing the parked domain used for the secondary language, which is English. The issue can be seen on this page: hidden link.

Symptoms:
When a user browses from the home page to a specific tour category and follows a link to one of the tours offered, they land on the tour's page in the primary language (Spanish) instead of the secondary language (English). The new page opens in a new tab in Spanish.

Questions:
Why are internal links not keeping users in the same language on the secondary language domain?
How can I ensure that links open in the correct language (English) when using different domains per language?

June 10, 2025 at 7:20 am #17120382

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Welcome to WPML support. I will answer this ticket before the ticket is assigned to one of my colleagues.

Would you please double-check if the separate domain mode is set correctly? You can check that by going to WPML > Languages and checking the checkbox next to the domain names and clicking the Validate option.

See if it shows validated. If no please make sure you set the domains correctly:

https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

The bottom line is that the domains need to be pointing to the website and not redirecting.

Also please check if the links that are used are absolute URLs and not relative ones.

Thanks.

June 11, 2025 at 1:37 pm #17126147

felicianoE-2

Hello, thanks for your reply.

I did the double check and the "validated" message appears.

I don't know if the URLs are set as absolute or relative. I'd appreciate further instructions in this matter.

June 12, 2025 at 3:24 pm #17130718

Marcel
Supporter

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

Timezone: Europe/Madrid (GMT+02:00)

Hi,

we can check whether the URLs in Divi are entered using just the slug or the full URL, such as 'hidden link'."

I would eventually also need to request temporary access (WP-Admin and FTP) to your site
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed

Your next answer will be private which means only you and I have access to it.

❌ Please backup your database and website ❌

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please add the Links to the […] Edit Screen, the Page/Post where you insert the […] and the corresponding Front End Page/Screen

Best Regards,
Marcel

June 16, 2025 at 10:32 pm #17140412

felicianoE-2

Please, provide me with an email account to associate to this WP admin user.

June 17, 2025 at 8:15 am #17141235

Marcel
Supporter

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

Timezone: Europe/Madrid (GMT+02:00)

Hi,

Since the credentials are entered into a secure input field and no actual email delivery takes place, there's no need to use a real email address. You can safely use something like noreply@yourdomain.com or noreply@wpml.org.

Best regards,
Marcel

June 19, 2025 at 4:03 pm #17151689

Marcel
Supporter

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

Timezone: Europe/Madrid (GMT+02:00)

Hi,

Thanks for the access. I’ve checked the internal links in Divi, and everything appears to be correct. When opening the English page, no internal links are pointing to the Spanish version. Custom URLs like /tour-pablo-escobar-compartido-visita-catedral are also correctly translated.

However, I noticed that the English translation of this page is incomplete and currently in draft status: hidden link">Preview Link

You can complete and review the translation following the steps outlined here:
How to Work as a Reviewer – WPML Documentation

After publishing, please test the links again. If you still find any incorrect permalinks, let me know exactly where and how to reproduce the issue.

Best regards,
Marcel

June 20, 2025 at 1:39 pm #17154529

felicianoE-2

Hello. Thank you. I will check everything in a few minutes.

I want to ask you if it is better to insert the whole URL when setting an internal link using Divi instead of just inserting the slug, to prevent this kind of issues... Or it doesn't make any difference?

June 20, 2025 at 2:01 pm #17154589

felicianoE-2

Hello, again. I just checked and we still have the same issue in the next pages:

1. hidden link
Except for the Escobar tours, when you click any internal link it opens the page in Spanish.

2. hidden link
All internal links in this page open the Spanish version.

3. hidden link
Internal links in this page open the Spanish version.

Plus, most internal links open in a new tab (although they were originally set to open in the same one).

I haven't checked the entire site, but I think most likely this is happening all through the site.

I would like to know what is the reason for this strange behavior, so that we can take enough care to prevent this to continue happening.

Thanks beforehand.

June 20, 2025 at 4:21 pm #17154903

Marcel
Supporter

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

Timezone: Europe/Madrid (GMT+02:00)

Hi,

I want to ask you if it is better to insert the whole URL when setting an internal link using Divi instead of just inserting the slug, to prevent this kind of issues... Or it doesn't make any difference?

In general, I recommend using the internal link selector from the dropdown menu. When you choose a link this way, WordPress handles the domain part dynamically using the SiteURL/HomeURL, which helps avoid problems later on.

Also, keep in mind that external URLs are treated differently in translations. Internal links are usually not shown in the translation editor because WPML can automatically point to the corresponding translated ID. So there's no need to translate absolute URLs manually. You can read more about this here: https://wpml.org/faq/how-to-translate-links/.

One more thing — I can’t access the English version of the page, as it’s still in draft status. Could you please publish it so I can check it? Here’s the link:
hidden link.

Right now, I get the message: "Sorry, you are not allowed to preview drafts." Thanks!

Best Regards,
Marcel