From 4f4cc43e90fb38c4ae3e3081538e20a3e641819f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 16 Apr 2023 14:30:16 +0200 Subject: [PATCH] fix home links in LoginController --- src/Controller/LoginController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/LoginController.php b/src/Controller/LoginController.php index 7a83d8c..8c30a49 100644 --- a/src/Controller/LoginController.php +++ b/src/Controller/LoginController.php @@ -37,7 +37,7 @@ class LoginController $this->userPasswordResetterRepository = new UserPasswordResetterRepository(); $this->redirectUrl = $this->request->session()->has('redirect_after_login') ? $this->request->session()->get('redirect_after_login') : - \Container::$routeCollection->getRoute('index')->generateLink(); + \Container::$routeCollection->getRoute('home')->generateLink(); } public function getLoginForm() @@ -174,7 +174,7 @@ class LoginController { $this->request->setUser(null); - return new Redirect(\Container::$routeCollection->getRoute('index')->generateLink(), IRedirect::TEMPORARY); + return new Redirect(\Container::$routeCollection->getRoute('home')->generateLink(), IRedirect::TEMPORARY); } public function requestPasswordReset(): IContent