diff --git a/app/scodoc/sco_utils.py b/app/scodoc/sco_utils.py index fcbfb4a767..58bf97568e 100644 --- a/app/scodoc/sco_utils.py +++ b/app/scodoc/sco_utils.py @@ -46,8 +46,7 @@ import time import traceback import types import unicodedata -import six.moves.urllib.parse, six.moves.urllib.error -import six.moves.urllib.error, six.moves.urllib.parse +import urllib from xml.etree import ElementTree from flask import g, current_app @@ -817,11 +816,14 @@ def confirm_dialog( # Attention: la page a pu etre servie en GET avec des parametres # si on laisse l'url "action" vide, les parametres restent alors que l'on passe en POST... if not dest_url: - dest_url = request.base_url - # strip remaining parameters from destination url: - dest_url = six.moves.urllib.parse.splitquery(dest_url)[0] + action = "" + else: + # strip remaining parameters from destination url: + dest_url = urllib.parse.splitquery(dest_url)[0] + action = f'action="{dest_url}"' + H = [ - """
""" % dest_url, + f"""""", message, """""" % OK, ]