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 @@