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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Bruno Kos 4 days, 4 hours 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).