fix: Add redirect_url check in base view

pull/14804/head
wangruidong 2025-01-14 11:41:00 +08:00 committed by Bryan
parent 4b19750581
commit c1c3236a30
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class BaseLoginCallbackView(AuthMixin, FlashMessageMixin, IMClientMixin, View):
response = self.get_failed_response(login_url, title=msg, msg=msg)
return response
if 'next=client' in redirect_url:
if redirect_url and 'next=client' in redirect_url:
self.request.META['QUERY_STRING'] += '&next=client'
return self.redirect_to_guard_view()