[Fermé] The language switcher urls don't keep my full path
Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.
Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.
Thank you for contacting the support forum.
Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.
WPML language switcher parses the URL lien caché and translates its parameter then constructs a new translated URL.
Since it is not aware of custom parameter/s/ it is lost. The feature of persevering the URL parameter is meant to preserve the query string e.g. lien caché but you are using custom rewrite rules so it is not part of the query string.
I would suggest you construct the custom language switcher using our hooks https://wpml.org/wpml-hook/wpml_active_languages/ there are some examples you can use and then in the code, you can get the custom parameter and put in the new language URL as you like.