From 675d37b8aba0af0f7c0708606c308f0678baa354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 4 May 2021 19:29:51 +0200 Subject: [PATCH] misc: redirect to form after stronger authentication login (#53751) --- wcs/forms/root.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcs/forms/root.py b/wcs/forms/root.py index 1e7bc67ca..bd2c930e9 100644 --- a/wcs/forms/root.py +++ b/wcs/forms/root.py @@ -18,6 +18,7 @@ import copy import io import json import time +import urllib.parse try: import qrcode @@ -785,8 +786,9 @@ class FormPage(Directory, FormTemplateMixin): r += htmltext('') root_url = get_publisher().get_root_url() for auth_context in self.formdef.required_authentication_contexts: - r += htmltext('

%s

') % ( + r += htmltext('

%s

') % ( root_url, + urllib.parse.quote(get_request().get_path_query()), _('Login with %s') % auth_contexts[auth_context], ) return r.getvalue()