diff --git a/src/security/decorators.py b/src/security/decorators.py index 5112e58de5..c2e0adf4ff 100755 --- a/src/security/decorators.py +++ b/src/security/decorators.py @@ -46,7 +46,7 @@ def base_check(request, login_redirect=False): params = urlencode({"next": f"{request.path}?{request_params}"}) return redirect('{0}?{1}'.format(reverse('core_login'), params)) elif isinstance(login_redirect, str): - params = urlencode({"next": redirect}) + params = urlencode({"next": login_redirect}) return redirect('{0}?{1}'.format(reverse('core_login'), params)) else: return False