Skip to content

Commit c3b0af2

Browse files
authored
fix(account): Don't check redirect url if there's no redirect
1 parent 93d47fd commit c3b0af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: allauth/account/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_next_redirect_url(request, redirect_field_name="next"):
3939
via the request.
4040
"""
4141
redirect_to = get_request_param(request, redirect_field_name)
42-
if not get_adapter().is_safe_url(redirect_to):
42+
if redirect_to and not get_adapter().is_safe_url(redirect_to):
4343
redirect_to = None
4444
return redirect_to
4545

0 commit comments

Comments
 (0)