Background of the issue:
I am trying to resolve an issue with the language switcher on our multilingual WordPress website using WPML. Since a recent plugin update, the page slug is being incorrectly removed from the URL when switching languages.
Symptoms:
When switching from a German product page URL (hidden link) to Polish, the URL incorrectly changes to hidden link instead of retaining the product slug as hidden link. This issue occurs across all pages.
Questions:
How can I fix the issue with the language switcher removing the page slug from the URL after the WPML plugin update?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Hi,
Thanks for sharing the background and details of the issue.
From what we’ve seen in the code, it appears the switcher might be customized. If that’s the case, the logic for generating translated URLs may not be compatible with the latest WPML changes.