-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language setting is lost for new browser sessions #16758
Comments
Thanks for reporting this problem. I was able to reproduce it in the lab. I'm moving your issue to |
You can assign it to me. I've got a fix ready (not perfect but ready for discussion). |
It seems like this bug still exists. Sometimes after a day or so (?) the Netbox language still resets to my browser language (German) for me, while English is configured for my user. |
Since the patch I did not have any problems. As the language is determined by the language cookie, can you please double check the cookie's existence and lifetime using your browser's developer tools? |
I managed to reproduce it reliably: |
OK, which type of SSO do you use? As you said, the cookie is not created at all after login, it seems to be not related to this issue. Could you please create a new one with a complete bug description? |
Just opened a new issue. |
Deployment Type
Self-hosted
NetBox Version
v4.0.6
Python Version
3.12
Steps to Reproduce
LOGIN_TIMEOUT > 0
setdjango_language
cookie is set)This is because
django_language
cookie's lifetime is set to browser session's lifetime. Each time the browser is closed, the cookie is deleted. Because no new login happens, the language is not set (related #16512).Expected Behavior
The user's language setting is applied
Observed Behavior
Browser language is applied.
The text was updated successfully, but these errors were encountered: