Skip Navigation

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

Problem:
You are trying to configure the URL structure for translated pages on your site using WPML, aiming to retain the default language slug after the domain and language code. However, the translated page's slug changes to the translated language, resulting in URLs not maintaining the default language slug.
Solution:
Although WPML does not have a built-in option to keep the default language slug in translated URLs, you can achieve a similar result by following these steps:
1. Navigate to WPML → Settings → Page URL and set it to "Translate".
2. Manually set the slug in the translation editor to match the original.
3. Enable the option "Copy from original language if translation language uses encoded URLs".
4. Visit

/wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Flanguages.php&trop=1

and set "Encode URLs" to "Yes".

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML support forum.

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.

This topic contains 1 reply, has 0 voices.

Last updated by Bruno Kos 1 month, 1 week ago.

Assisted by: Bruno Kos.

Author Posts
May 2, 2025 at 8:43 am #16988493

hassanM-11

Background of the issue:
I am trying to configure the URL structure for translated pages on my site hidden link using WPML. I want the URL of the translated page to retain the default language slug after the domain and language code.

Symptoms:
The translated page's slug changes to the translated language, resulting in URLs like hidden link instead of the desired hidden link.

Questions:
How can I configure WPML to keep the default language slug in the URL for translated pages?

May 2, 2025 at 12:41 pm #16989593

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

WPML doesn’t have a built-in option to keep the default language slug in translated URLs, but you can get similar results with the following setup:

1. Go to WPML → Settings → Page URL and set it to "Translate".
2. Manually set the slug in the translation editor to match the original.
3. As a workaround, you can enable "Copy from original language if translation language uses encoded URLs"
4. Then visit:
`/wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Flanguages.php&trop=1`
and set "Encode URLs" to "Yes".

Regards,
Bruno Kos