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 3 replies, has 2 voices.

Last updated by Christopher Amirian 4 years, 3 months ago.

Assisted by: Christopher Amirian.

Author Posts
February 22, 2021 at 3:30 pm #8146367

lauraW-9

Tell us what you are trying to do? I have a 'custom' language as default language (Global English), however I see that people who do not have the browser language in one of my languages land on the English webpage instead of my Global English webpage. In Analytics I see that they land on: /en/?multilink=switch How can I solve this? I want them to land on hidden link.

What is the link to your site? hidden link

February 23, 2021 at 2:43 pm #8155275

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Would you please kindly disable the redirection plugin that you have? For the best test I suggest that you follow the steps below:

- Create a backup of your website. You can use backup tools from WordPress: https://wordpress.org/plugins/tags/backup/
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except WPML and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

Thank you.

February 23, 2021 at 2:49 pm #8155307

lauraW-9

Hi Christopher,

Thank you for your reply. The whole problem is that I'm not able to recreate the issue. I can only see that people are entering my form on the UK English page instead of the global English page where they're supposed to land on. After researching in analytics I stumbled upon the link mentioned above, but I don't know why they seem to land on that link. However, it does make people go the UK English website instead of the global one.

February 24, 2021 at 1:23 pm #8163733

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Thank you for the information. About the point that you mentioned, the language redirection based on the browser language is triggered only once for each client.

If it triggers each time, then the visitor can not switch the language. Here are the details:

https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/#no-redirection-when-refreshing-the-browser

Now I do see that the page is redirected to /en. You can test that by clearing your browser cache or use the incognito/private browser mode to see the result.

I asked for a second opinion and it seems that the only way that the redirection for the custom language would work is if you set the locale of the custom language, the same as the locale of the browser that the visitor checks.

I checked my Chrome browser locale and it is "en-US". So you can test by changing the locale of the custom language to that:

- Go to WordPress Dashboard > WPML > Language > Edit Languages (link).
- Check the Custom language row and change the Default Locale.

See if it works for your customers.

Thank you.

Screen Shot 2021-02-24 at 17.23.18.png