Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where the URL parameter '?lang=en' remains in the URL after setting up redirections using Rank Math on a site under development. The expected URL was 'https://www.bassetti-group.com/en/', but the actual result is 'https://www.bassetti-group.com/en/?lang=en'.
Solution:
We analyzed the situation and found that the redirection to 'https://www.bassetti-group.com/en/?lang=en' is handled by Rank Math, and this behavior is not related to WPML. Visiting 'https://www.bassetti-group.com/en/' does not redirect further, which aligns with WPML's expected behavior. We also noticed that the client does not have WPML SEO installed. We recommend installing WPML SEO to enhance compatibility with Rank Math by helping it recognize the language settings more accurately. Since this issue is related to Rank Math's functionality, we advise contacting Rank Math's support for further assistance.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.

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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Mohamed Amine Samet 7 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
July 18, 2024 at 4:08 pm #15973713

Mohamed Amine Samet

Background of the issue:
I am working on a site under development and have changed URL formats. I used RankMath to redirect the link hidden link to hidden link.

Symptoms:
I still find the parameter ?lang=en in the URL hidden link.

Questions:
Could I know why the parameter ?lang=en is still in the URL?

July 18, 2024 at 6:27 pm #15974166

Lucas Vidal de Andrade
Supporter

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

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

Hey there,

Welcome to the WPML Support. I checked the hidden link and the URL is being actually redirected to hidden link by Rank Math (check the screenshot). This doesn't look to be WPML related, as the redirect itself is directly to the URL with the language parameter.

Visiting hidden link doesn't redirect the user anywhere, which is the expected behavior from WPML in this case.

As a side note, I noticed that you don't have WPML SEO installed. It's a good idea to use it along with Rank Math, to help it properly recognize the language settings of your content.

https://wpml.org/documentation/related-projects/wpml-seo/

In conclusion, I'd recommend you to reach out to Rank Math's support. It doesn't look like there's anything that can be done from WPML's side. Let me know.

Screenshot 2024-07-18 at 15.26.35.jpg
July 19, 2024 at 8:27 am #15976721

Mohamed Amine Samet

Hello,

Thank you for your response.

I will contact Rank Math support and let you know.

Best regards,

July 19, 2024 at 11:12 am #15977714

Mohamed Amine Samet

Hello,

Thank you for your assistance.

I contact Rank Math support and the issue is solved.

Best regards,