Home›Support›English Support›[Escalated to 2nd Tier] Root language redirect doesn't account for other variations
[Escalated to 2nd Tier] Root language redirect doesn't account for other variations
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.
I am trying to: Update the landing page at hidden link so when a user who has English (as an example) as their default browser language arrives on the page, it sends them to the English (/en/) version of the site.
Link to a page where the issue can be seen: hidden link
I expected to see: A redirect to hidden link automatically.
Instead, I got: The landing page.
-----
I've tested with other languages in other browsers and ones like Italian correctly redirect. However, English does not. I'm not sure why this is the case - it seems like it may be because many users have `en-US` or `en-GB` as their default browser language, which is obviously a different slug than the default English.
Is there a way to direct all English users to the English site automatically with WPML?
This also appears be a problem with all languages - if someone has `es-mx` as their browser language, it doesn't redirect to `es`. Is there a way to wildcard languages based off of the first two letters in the language code?
Adding separate languages isn't an option due to problems with scale, and also because all of the languages already installed would need to be synchronized.
It seems your issue is related to a known conflict with Redirection plugin which is active in your setup. Can you please try deactivating the plugin and check whether you can reproduce the issue. Please test in incognito / private mode or clear the cookies and cache of your site from the browser.
Unfortunately that didn't seem to work. I've disabled the Redirection plugin on our staging site (which is up-to-date with all WPML plugins), emptied both the site and browser cache, and tried in incognito windows with both Firefox and Chrome. I still receive the language selector page.
The staging URL we can test with is here: hidden link
If necessary, I can create a temporary user login for you to take a look - I would just need a secure way to transfer that information.
I would like to request temporary access (wp-admin and FTP) to your test site to take a better look at the issue.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
We are still working on this, It seems like a logical error Since root pages should not have any language attribute attached to it but it takes the language of the site default language which is quite strange. Our second tier support is still working on this once we have any workaround we will update on this thread immediately.
To keep track of this ticket I have marked the status as escalated and I'm closely following the happenings on the escalated ticket I will let you know the updates.
Kindly apologize, I'm Afraid i don't have any update to share with you. The issue is still discussed in the developer's queue. Since it is not a showstopper we are looking into some other critical and very important issues and come back to this when our the developer's queue is normal.
Your patience and understanding are highly appreciated in this regard.