From 353530de32c9e3173defc2c72a7e7f347932fd75 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Tue, 14 Mar 2017 20:34:59 +0100 Subject: [PATCH] Set `next` on show_protocol login-redirect /close #57 --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index c45203f..45c1696 100755 --- a/server.py +++ b/server.py @@ -467,7 +467,7 @@ def show_protocol(protocol): errors_table = ErrorsTable(protocol.errors) if not protocol.protocoltype.has_public_view_right(user, check_networks=False): # yes, feature flash("Die fehlen die nötigen Zugriffsrechte.", "alert-error") - return redirect(request.args.get("next") or url_for("login")) + return redirect(request.args.get("next") or url_for("login", next=request.url)) visible_documents = [ document for document in protocol.documents if (not document.is_private and document.protocol.has_public_view_right(user)) -- GitLab