2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

fix login redirect logic

This commit is contained in:
Matthias Mair
2025-01-08 20:41:53 +01:00
parent f84ce83e8f
commit cb8779a082

View File

@ -323,10 +323,7 @@ class LoginRedirect(RedirectView):
def get_redirect_url(self, *args, **kwargs):
"""Return the URL to redirect to."""
session = self.request.session
if session.get('preferred_method', 'cui') == 'pui':
return f'/{FRONTEND_URL_BASE}/logged-in/'
return '/index/'
user_urls = [