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 1 reply, has 2 voices.

Last updated by Laura 1 year ago.

Assigned support staff: Laura.

Author Posts
October 11, 2018 at 2:48 pm #2808746

diegoA-13

I have used browser language redirect option but When I go to the site for the first time it changes into Spanish, but if I close that tab on PC or mobile and re-open, it will load in English.
I have set default language English in admin side settings.

October 12, 2018 at 2:25 pm #2812315

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

Timezone: Europe/Rome (GMT+02:00)

Hi,

this is the expected behavior because WPML redirects only the first time you access the page, otherwise, people wouldn't be able to change language.
The cookie redirection reset every 24 hours, so after that you'll get redirected to the Spanish page again. You can change it in the option.

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