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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

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

This topic contains 3 replies, has 0 voices.

Last updated by Carlos Rojas 1 day, 1 hour ago.

Assisted by: Carlos Rojas.

Author Posts
November 22, 2024 at 3:54 pm #16434584

Sebastien

Background of the issue:
I recently migrated my website to wordpress.com and I have a staging website and production website. When deploying my staging website to the production, all the URLs in the content of a page have /fr/fr/ in French and /fr/en/ in English. I would like that my links in the French version only have one /fr/ and on the English version only have /en/. The links in the menu and footer are correct; it is only the links in the content of a page.

Symptoms:
There is a duplicate language code in my content URLs, such as /fr/fr/ in French and /fr/en/ in English.

Questions:
How can I remove the duplicate language code from the content URLs?
Is there a way to ensure that the links in the content match the correct language code?

November 22, 2024 at 5:44 pm #16434981

Carlos Rojas
Supporter

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

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

Hello,
Thank you for contacting us

I understand that the issue does not happen on the staging and only appears after you migrate to production. If that is correct, then the cause of the issue points to the migration process. Could you tell me how are you migrating the site?

Regards,
Carlos

November 22, 2024 at 7:37 pm #16435179

Sebastien

The deployment is made in the wordpress.com admin interface. I select the synchronization from staging to production and synchronize all the data in the screenshot below

Screenshot 2024-11-22 at 2.36.07 PM.png
November 25, 2024 at 10:31 am #16439162

Carlos Rojas
Supporter

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

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

Thank you for your message.

In this case, I'd recommend double-checking if the issue persists after re-saving the permalinks or using a migration plugin like All-In-One WP Migration.