Skip Navigation

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

Problem:
The client is experiencing an issue where the slug for posts in a secondary language is not the same as the original language, and they have to manually edit the slug after publishing.

Solution:
If you're experiencing issues with slug translations and want to keep the same slug in secondary language pages, we recommend you try the following steps:
1. Navigate to WPML >> Settings >> Translated documents options section and enable the option “Copy from original language if translation language uses encoded URLs”.
2. Go to WPML >> Languages page, click on the “Edit languages” link, and set the Encode URLs option to “Yes” for the language in which you want to copy the slug.

After completing these steps, when you add or update a translated page, it should automatically copy the slug from the default language pages.

Please note that the solution provided might be irrelevant if it’s outdated or not applicable to your case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, 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 1 reply, has 2 voices.

Last updated by Noman 1 year, 2 months ago.

Assisted by: Noman.

Author Posts
April 20, 2024 at 12:00 pm #15546086

saitamaJ

Tell us what you are trying to do?
my post in original language page url is hidden link
but on other language it has title string tranlation add more such as hidden link

and everytime I publish post I will quick edit slug on other language

right now config check on Translate (this will include the slug in the translation and not create it automatically from the title)

and I try to select Copy from original language if translation language uses encoded URLs same problem

Is there any documentation that you are following? -

Is there a similar example that we can see?

What is the link to your site?

April 21, 2024 at 10:09 am #15546938

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. To keep the same slug in the secondary language pages, could you please make sure to follow the below steps and see if this resolves your issue:

1. Please go to WPML >> Settings > Translated documents options section and enable the “Copy from original language if translation language uses encoded URLs” as you can see in the attached screenshot.

2. Please go to WPML >> Languages page and click on the “Edit languages” link and make sure to choose the Encode URLs to “Yes” to that language in which you want to copy the slug as you can see in the attached screenshots.

After that when you try to add/update the translated page it will copy the slug from default language pages.

Please let me know the results,
Thank you

Step 1 - copy from original.png
Step 2 - Edit languages link.png
Step 3 - Encode URL.png
April 21, 2024 at 11:32 am #15547103

saitamaJ

Yes it work!