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.

Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 0 replies, has 0 voices.

Last updated by Lucas Vidal de Andrade 5 days, 8 hours ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
April 15, 2025 at 4:21 pm #16935453

zakW

Background of the issue:
I am trying to retain URL parameters when switching languages on the language switcher of my WordPress site using WPML. The site I need help with is hidden link.

Symptoms:
When switching language, the URL parameters are not being retained.

Questions:
On the language switcher, how can I retain the URL parameters?

April 15, 2025 at 7:39 pm #16935985

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Please check our documentation on that:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/preserve-url-arguments-when-switching-languages/

That should answer your question. Let me know.

April 16, 2025 at 8:11 am #16937197

zakW

OK, thank you for this information.

We will test this today. will let you know how it goes.

April 16, 2025 at 1:25 pm #16939157

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Ok. Let me know.

April 16, 2025 at 1:26 pm #16939163

zakW

Thank you for this. The preserving of URL parameters as advised works but now I have a different problem.

There is a bug when on the homepage and there is a URL parameter present the language switcher links to the shop page instead of the homepage.

You can see what I mean with this link
hidden link

DE links to
hidden link

USA links to
hidden link

April 16, 2025 at 7:39 pm #16941028

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for sharing the details. I've sent your ticket to our devs, to get a second opinion. I'll let you once I have feedback from them. Thank you.

April 17, 2025 at 3:18 pm #16944921

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

We are still looking into your issue. I'll let you know once we have new information.

April 18, 2025 at 9:43 am #16946890

zakW

Thank you, my team will check on this ticket on Monday 21st

It seems to not be an uncommon situation, as I was able to replicate the issue of a search result going to another language's shop page instead (hidden link). I imagine the bug has been reported before and there is likely a solution.

April 21, 2025 at 2:16 pm #16951992

zakW

Hello,

Just want to check in about my issue with the Language switcher. How is the investigation going?

April 22, 2025 at 8:31 pm #16957283

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

We haven't had any other reports of this issue. I guess not many users change language in between searches, but I cannot confirm.

I'm still checking with our devs, I'll get back to you as soon as I have a solution. Thank you for your patience.

April 25, 2025 at 7:25 am #16967084

zakW

Hi I know that you are still doing your investigation. Can you give me a time on when can this be resolved please?

April 25, 2025 at 6:23 pm #16969637

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I apologize, but I still don't have a definite deadline to give you. I can tell you we need at least a few couple more days. I'm discussing with the devs how we will handle this issue, as it's not exclusive to your website and is a more general issue that impacts other users (even though we haven't had any open tickets about this matter). I'm trying to check for a quick workaround, meanwhile.

Thank you for understanding. I'll keep you updated.

April 28, 2025 at 8:25 pm #16976677

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you very much for reaching out and for sharing your feedback and ideas with us. We genuinely appreciate hearing from users like you who are deeply engaged and help us improve.

After careful evaluation and internal discussion, we have decided not to implement a fix for this specific case. While we understand how retaining search parameters across languages could improve the experience in your scenario, this behavior is quite complex to handle reliably and falls outside the standard functionality expected by most of our users. We haven't had any reports of users switching languages mid-search and facing issues.

Given the development effort required and the limited demand for this feature, we must prioritize other improvements that serve broader needs.

That said, we truly value your input, and we will certainly keep this request documented for future review. Should the demand for this functionality grow over time, we will be happy to re-evaluate it.

Thank you again for your understanding and continued support. If there is anything else we can assist you with, please don't hesitate to let us know.