From a8e912fcb150672539d028b7f8bab8dc2a7eb692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 5 Sep 2017 11:34:28 +0200 Subject: [PATCH] Include 'next' URL when logging in through a 403 Forbidden page --- src/templates/errors/403_embed.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/templates/errors/403_embed.pug b/src/templates/errors/403_embed.pug index 4b4b9a02..a9e55a72 100644 --- a/src/templates/errors/403_embed.pug +++ b/src/templates/errors/403_embed.pug @@ -1,3 +1,4 @@ +| {% set login_url = url_for('users.login', next=request.url) %} #error-container.error-403 #error-box .error-top-container @@ -23,7 +24,7 @@ | {% else %} p - a(href="{{ url_for('users.login') }}") Login + a(href="{{ login_url }}") Login | {% endif %} .error-lead.extra