[WEB-1380] chore: fix sidebar expanding issue on sign out. (#4557)
* [WEB-1380] chore: fix sidebar expanding issue on sign out. * chore: update sign-out redirect url. * dev: update signout view and fix the entrypoint on docker-compose-local * chore: remove localStorage reset logic for `app_sidebar_collapsed` on sign-out. --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
This commit is contained in:
parent
577996b34a
commit
2b27f39727
3 changed files with 5 additions and 8 deletions
|
|
@ -1,6 +1,3 @@
|
|||
# Python imports
|
||||
from urllib.parse import urljoin
|
||||
|
||||
# Django imports
|
||||
from django.views import View
|
||||
from django.contrib.auth import logout
|
||||
|
|
@ -23,9 +20,10 @@ class SignOutAuthEndpoint(View):
|
|||
user.save()
|
||||
# Log the user out
|
||||
logout(request)
|
||||
url = urljoin(base_host(request=request, is_app=True), "sign-in")
|
||||
return HttpResponseRedirect(url)
|
||||
return HttpResponseRedirect(
|
||||
base_host(request=request, is_app=True)
|
||||
)
|
||||
except Exception:
|
||||
return HttpResponseRedirect(
|
||||
base_host(request=request, is_app=True), "sign-in"
|
||||
base_host(request=request, is_app=True)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue