]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/front/controller/admin/LogoutController.php
Use multi-level routes for existing controllers instead of 1 level everywhere
[github/shaarli/Shaarli.git] / application / front / controller / admin / LogoutController.php
index 41e81984a4c89ef6407e3e0c3463dfe0e649a473..c5984814738674c8601c1c35b4ccf5de971bb220 100644 (file)
@@ -22,8 +22,8 @@ class LogoutController extends ShaarliAdminController
         $this->container->sessionManager->logout();
 
         // TODO: switch to a simple Cookie manager allowing to check the session, and create mocks.
-        setcookie(LoginManager::$STAY_SIGNED_IN_COOKIE, 'false', 0, $this->container->webPath);
+        setcookie(LoginManager::$STAY_SIGNED_IN_COOKIE, 'false', 0, $this->container->basePath . '/');
 
-        return $response->withRedirect('./');
+        return $this->redirect($response, '/');
     }
 }