From 1655a377f08efb959a31417f4ca58f7da84c33db Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 4 Aug 2022 22:51:14 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04838=20-=20Redirect=20to=20login=20page?= =?UTF-8?q?=20automatically=20from=20logoff=20screen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/pages/login/logout.html.twig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/pages/login/logout.html.twig b/templates/pages/login/logout.html.twig index ba4f72b03..8e7791d13 100644 --- a/templates/pages/login/logout.html.twig +++ b/templates/pages/login/logout.html.twig @@ -11,3 +11,10 @@ {% endblock %} + +{% block ready_script %} + {{ parent() }} + + // Redirect after 2s so the user has time to read the message + setTimeout(function() { window.location.href = '{{ sUrl }}'; }, 1000); +{% endblock %} \ No newline at end of file