Home›Support›English Support›[Waiting for user confirmation] There is a duplicate language code in my content urls
[Waiting for user confirmation] There is a duplicate language code in my content urls
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/
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?
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?
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
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.
Re-saving the permissions didn't change anything. To migrate to wordpress.com I used the plugin : Migrate to WordprPress.com which is the plugin I need to use to migrate
In this ticket, we are not discussing a translation issue on your site, which means that WPML is not causing this strange behavior. I recommend contacting the support service of the migration plugin or using a different migration method and double-checking if the issue disappeared.