From 3ee5a3dd113f55b59db251ea79ec3961122d42de Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 24 Sep 2020 16:00:03 -0400 Subject: [PATCH] Don't use a login next-url of /logout If /logout is the current page, redirecting back there after logging in makes the whole exercise pointless. --- lms/templates/main.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/main.html b/lms/templates/main.html index 140910df9d..9d560cf501 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -217,5 +217,5 @@ from pipeline_mako import render_require_js_path_overrides <%def name="login_query()">${ u"?next={next}".format( next=urlquote_plus(login_redirect_url if login_redirect_url else request.path) - ) if (login_redirect_url or request) else "" + ) if (login_redirect_url or (request and not request.path.startswith("/logout"))) else "" }