Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with links not being translated correctly, resulting in 404 errors or linking to the wrong language version of the page.

Solution:
We recommend two approaches to resolve this issue:
1. As a long-term solution, add

<type="link">

to your existing XML configuration. This will ensure that links are correctly translated.
2. As a short-term solution, use machine translation for the URLs and manually edit the translations if they are incorrect.

We advise the client to implement the first solution for a permanent fix. However, it is important to note that updating existing pages that use shortcodes from the previous XML configuration will be necessary to make the changes effective.

If this solution does not seem relevant to your situation, please open a new support ticket with us.

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: 

This topic contains 30 replies, has 2 voices.

Last updated by Marcel 3 years, 9 months ago.

Assisted by: Marcel.

Author Posts
October 20, 2021 at 8:45 am #9824457

Marcel
Supporter

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

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

Hi,

we checked your case and our devs recommended the following. There are 2 ways to handle this is you don't want to use absolute URLs.

#1 the long-term solution would be to add to your existing XML config the

type="link"  

, which I recommended you earlier.

#2 To alternative is to use the machine translation on these URLs and edit the translation afterwards if it's wrong, which is a short-term solution.

So I recommend you to go with #1, which will solve your issue. The only thing you can't prevent here is updating the existing pages where you use these shortcodes coming from that previous XML-config. The update will be necessary to get it working.

Best Regards
Marcel