Skip Navigation

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

Problem:
If you're experiencing issues where your product URLs do not display the correct translated slug in secondary languages initially, and only correct themselves after switching languages back and forth, this might be due to the fallback feature.
Solution:
We recommend two steps to address this issue:
1. Disable the fallback for products to prevent untranslated products from showing in the default language. For guidance on this step, please refer to our documentation: Disable fallback for products.
2. Duplicate the products to ensure they appear in all target languages. This can be efficiently done using WPML's bulk duplication feature. For more details, visit: Duplicate products.

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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Bruno Kos 3 months, 3 weeks ago.

Assisted by: Bruno Kos.

Author Posts
October 31, 2024 at 9:30 am

jonasP-14

Background of the issue:
I am trying to ensure that our products with the fallback feature display the correct translated URL slug/taxonomy when browsing our site in secondary languages. Our default slug for products is shop.delfi.com/da/vare/producttitle. When browsing in secondary languages, it should show as shop.delfi.com/en/product/producttitle. However, it initially shows as shop.delfi.com/en/vare/producttitle. The issue can be seen at hidden link.

Symptoms:
When I am on a product with the URL /en/vare/producttitle and switch to the default language and back to the secondary language, it shows the correct /en/product/producttitle. But initially, it does not display correctly.

Questions:
Why is the translated URL slug not displaying correctly in secondary languages initially?
What causes the URL to correct itself after switching languages?

October 31, 2024 at 10:28 am
October 31, 2024 at 1:09 pm #16351520

Bruno Kos
Supporter

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

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

I am checking this with our 2nd tier and will keep you posted.

November 4, 2024 at 5:53 am #16358753

Bruno Kos
Supporter

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

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

The issue seems to be the same as within this case:
https://wpml.org/forums/topic/wrong-product-permalinks-are-generated-at-catalog-page/page/2/#post-15389373

Unfortunately there is no workaround in terms of code for this, so you can:

1. Disable the fallback for products to prevent untranslated products from showing in the default language. You can refer to the WPML documentation for this step: [Disable fallback for products](https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#using-the-default-language-as-a-fallback-for-untranslated-content).

2. Duplicate the products to ensure they appear in all target languages. You can use WPML's bulk duplication feature to expedite this process. More details here: [Duplicate products](https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#how-to-duplicate-pages-and-posts-in-bulk).