From 1a7b96555da3f1e1bc57ed7784fb168b8617ae30 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Mon, 20 Jan 2020 10:37:32 +0000
Subject: [PATCH] Fix logout redirect path.

After logout, you would be redirected to a non-existent path (404).
Likely the best place to be redirected after logout is the base.
---
 modules/core/lib/Controller/Login.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/core/lib/Controller/Login.php b/modules/core/lib/Controller/Login.php
index cc1c16af6..99b13664e 100644
--- a/modules/core/lib/Controller/Login.php
+++ b/modules/core/lib/Controller/Login.php
@@ -188,7 +188,7 @@ class Login
         $auth = new Auth\Simple($as);
         return new RunnableResponse(
             [$auth, 'logout'],
-            [$this->config->getBasePath() . 'core/logout/' . urlencode($as)]
+            [$this->config->getBasePath()]
         );
     }
 
-- 
GitLab