diff options
author | Frederick Muriuki Muriithi | 2024-10-09 16:37:29 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-09 16:38:22 -0500 |
commit | 57fe4bb06f6971cac828edc20f580956e88408a0 (patch) | |
tree | ab07280981eb3bd153eee4054e439b925c179344 /gn_auth/auth/authorisation/users/admin/views.py | |
parent | f05c496c5cb492695bd0e7c1138eea255050d72a (diff) | |
download | gn-auth-57fe4bb06f6971cac828edc20f580956e88408a0.tar.gz |
Pass on all GET parameters when redirecting.
Diffstat (limited to 'gn_auth/auth/authorisation/users/admin/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/users/admin/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/users/admin/views.py b/gn_auth/auth/authorisation/users/admin/views.py index 1dd2f1f..fb22e5d 100644 --- a/gn_auth/auth/authorisation/users/admin/views.py +++ b/gn_auth/auth/authorisation/users/admin/views.py @@ -98,7 +98,7 @@ def login(): expires=( datetime.now(tz=timezone.utc) + timedelta(minutes=int( app.config.get("SESSION_EXPIRY_MINUTES", 10))))) - return redirect(url_for(next_uri)) + return redirect(url_for(next_uri, **dict(request.args))) raise NotFoundError(error_message) except NotFoundError as _nfe: flash(error_message, "alert-danger") |