URL parameters / URL variables aren’t preserved by the Language Switcher
-
My client’s site is bilingual (English/French) and a form on their membership page passes users to a checkout page. However, its URL is appended with specific parameters for chosen level and discount code.
The page has a FR version that the Language Switcher can flip to but the added parameters in URL are not preserved when switching.
For example:
…en/member/checkout/?level=1&discount_code=free
goes to:
…fr/membre/verification/I can have the FR version of the form pass those same parameters into the ‘verification’ page URL, sure, but any user deciding to switch language at checkout will end up signing up for the default level and have no saved discount code.
So is there any way to have Polylang detect the current URL and automatically tack on any parameters that follow the slug?
- The topic ‘URL parameters / URL variables aren’t preserved by the Language Switcher’ is closed to new replies.