When Portal language is configured to follow browser language, change in browser language requires clearing a cookie
Concerned version
Version: 2.0.16
Platform: Nginx
Summary
Preconditions / test setup:
- LemonLDAP configured not to display language selection buttons in the Portal UI => Portal should follow the browser's language
- Firefox set to prefer English for web pages
Steps to reproduce:
- Open LemonLDAP portal page => Page is in English
- Change Firefox to prefer French for web pages
- Reload LemonLDAP portal page
Expected result:
- LemonLDAP should show the page in French
Actual result:
- The page is still shown in English (because LemonLDAP stores the language to a cookie named llnglanguage)
Workaround:
- Click the padlock icon next to the address in address bar and select "clear cookies and site data" and press "remove"
- Then reload the page and it is shown in French