Skip Navigation

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

Problem:
The client's website is set up with English pages and Spanish translations under the '/es/' URL prefix. However, WPML is adding an extra language code suffix to the URLs of taxonomy archive pages, resulting in URLs like 'https://uncorkmexico.com/es/tienda/varietal/nebbiolo-es/' instead of the expected 'https://uncorkmexico.com/es/tienda/varietal/nebbiolo/'.

Solution:
If you're experiencing this issue, we recommend you try the following steps:
1. Navigate to WPML > Taxonomy Translation.
2. Use the dropdown menu to select the Taxonomy that contains the Category.
3. Locate and edit the Spanish translation of the "Nebbiolo" taxonomy.
4. In the editing popup, you will find a field labeled 'slug'. Remove any extra parts from the slug and save your changes.

For a clearer understanding, you can refer to this screenshot: http://tinyurl.com/ywkmoc7s

If this solution doesn't look relevant to your issue, please open a new support ticket here: 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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 1 year ago.

Assisted by: Prosenjit Barman.

Author Posts
January 22, 2024 at 6:35 pm #15213166

vanusap

My website is uncorkmexico.com (english pages), and set up for the URLs to be uncorkmexico.com/es/ for the translated Spanish pages. However, WPML is adding an extra suffix at the end of the the URLs or taxonomy archive pages, so look like this:

English: hidden link
Spanish: hidden link

If you noticed, it adds the correct suffix after the main URL, and then an extra -es at the end of the URL.

I attached below the screenshot of my WPML language settings for reference.

Can you help me fix it?

Screenshot 2024-01-22 at 12.27.09.png
January 23, 2024 at 11:15 am #15215912

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand what you're looking for. According to standard WordPress guidelines, it's essential to use unique slugs throughout the site. To maintain the uniqueness of slugs for pages, posts, and taxonomies in different languages, WPML automatically adds the language code at the end of each slug. This approach is adopted to preserve the uniqueness of slugs, as having identical slugs across different languages can often result in unexpected issues.

If you want to remove the language code from the Slug, please try the following.

- Navigate to WPML > Taxonomy Translation.
- Use the dropdown menu to select the Taxonomy that contains the Category.
- Locate and edit the Spanish translation of the "Nebbiolo" taxonomy. In the editing popup, you will find a field labeled 'slug.' Please remove any extra parts from the slug and save your changes. For a clearer understanding, refer to this screenshot: hidden link

Please let me know if that helps or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

January 25, 2024 at 10:04 pm #15228381

vanusap

Thank you! I followed the instructions and was able to solve the issue.