From a7d51655b64ee25214e8da79ffa2de45e5755696 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 18 Jan 2021 17:18:47 +0100 Subject: [PATCH] fixing url of link --- ereuse_devicehub/resources/documents/documents.py | 6 +++++- .../resources/documents/templates/documents/stamp.html | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/resources/documents/documents.py b/ereuse_devicehub/resources/documents/documents.py index 14588b2b..0150bc8b 100644 --- a/ereuse_devicehub/resources/documents/documents.py +++ b/ereuse_devicehub/resources/documents/documents.py @@ -237,7 +237,11 @@ class StampsView(View): of one csv file """ def get(self): - return flask.render_template('documents/stamp.html') + url = urlutils.URL(request.url) + url.normalize() + url.path_parts = url.path_parts[:-2] + ['check', ''] + url_path = url.to_text() + return flask.render_template('documents/stamp.html', rq_url=url_path) class DocumentDef(Resource): diff --git a/ereuse_devicehub/resources/documents/templates/documents/stamp.html b/ereuse_devicehub/resources/documents/templates/documents/stamp.html index 7ccec63a..c204c2ff 100644 --- a/ereuse_devicehub/resources/documents/templates/documents/stamp.html +++ b/ereuse_devicehub/resources/documents/templates/documents/stamp.html @@ -39,10 +39,10 @@