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.

This topic contains 1 reply, has 0 voices.

Last updated by Waqas Bin Hasan 6 days, 1 hour ago.

Author Posts
December 3, 2024 at 9:06 pm #16473766

katarzynaT-5

Background of the issue:
I am experiencing a critical issue with how WPML handles slugs for translated categories. When translating a category from the default language (English) to other languages, WPML automatically appends language-specific suffixes like -pl, -de, -fr to the slug. This slug modification breaks the URL architecture and causes significant problems, especially since many of these categories have unique names (e.g., Porsche, Mercedes, Volvo). The issue affects all translated categories, regardless of language.

Symptoms:
WPML changes the slug of translated categories by appending language-specific suffixes, disrupting the URL structure.

Questions:
Why does WPML add language-specific suffixes like -pl, -de, -fr to the slugs, even when the category names are unique?
How can I configure WPML so that translated categories retain the same slug as the default language without any modifications?

December 5, 2024 at 11:12 am #16481060

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting the support. Meanwhile this ticket is attended by one of my colleagues, I'll recommend checking this guide https://wpml.org/documentation/getting-started-guide/translating-page-slugs/#translate-page-and-post-url-slugs about how you can have more control on slug translation.

By default WPML adds that language code to the translated slug, as you've noted. However, by following the above mention you can make it either available for translation in the translation editor or copy from original if translation languages uses encoded URLs.

Regards.