You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I check the file ~/.virtualenvs/weblate/lib/python3.10/site-packages/weblate/trans/context_processors.py and edit the tab in line 128, and now I haven't the error, but the logout sends to admin page login, not the home page.
The text was updated successfully, but these errors were encountered:
This should not happen. While Django logout indeed sets AnonymousUser as a request user upon logout, the logout request should just redirect and not render anything. And the next request will get a proper User instance.
Did you do any code customization in Weblate? Does the configuration follow what is specified in settings_example.py?
This issue has been marked as a question by a Weblate team member. Why? Because it belongs more to the professional Weblate Care or community Discussions than here. We strive to answer these reasonably fast here, too, but purchasing the support subscription is more responsible and faster for your business. And it makes Weblate stronger as well. Thanks!
In case your question is already answered, making a donation is the right way to say thank you!
I'm very sorry for the noise. I just went through the entire settings_example.py file line by line, and I found that the LOGOUT_REDIRECT_URL option was not available in my version. I have added it and undone the changes and everything works correctly.
In some upgrade I miss creating this new variable, and only now, when checking last version, I see the error.
Thank you.
nijel
added
bug
Something is broken.
and removed
question
This is more a question for the support than an issue.
labels
May 21, 2024
Describe the issue
When you are logged in weblate, and you try to logout. This error appears in my sentry:
I already tried
Steps to reproduce the behavior
Expected behavior
I want to see logout user, and going to home page, or a link to home page.
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
PyPI module
Weblate versions
Weblate deploy checks
Additional context
I check the file ~/.virtualenvs/weblate/lib/python3.10/site-packages/weblate/trans/context_processors.py and edit the tab in line 128, and now I haven't the error, but the logout sends to admin page login, not the home page.
The text was updated successfully, but these errors were encountered: