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 Bruno Kos 1 month ago.

Author Posts
April 15, 2025 at 1:34 pm #16934196

marketingS-10

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?

April 16, 2025 at 1:35 pm #16939230

Bruno Kos
WPML Supporter since 12/2018

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.

As a quick test, can you try adding a language switcher using WPML’s built-in method (like the menu switcher)?
You can follow this guide:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#add-language-switcher-menu

Once added, please check whether this built-in switcher preserves the correct product slugs when switching languages.

This test will help determine whether the issue is with WPML itself or something specific to the current switcher implementation.