From: Tim Düsterhus Date: Fri, 27 May 2022 11:38:33 +0000 (+0200) Subject: Remove enforced redirect of `login` and `index` controller in ACP to the `wcf` applic... X-Git-Tag: 6.0.0_Alpha_1~1247^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9dce27efbe7cffa4773ecc696e6796ad3b86cd5;p=GitHub%2FWoltLab%2FWCF.git Remove enforced redirect of `login` and `index` controller in ACP to the `wcf` application It is not clear why this was added in d49006fac289699c925a6d5644f102b7ebfc972c, but it does not appear to still be required. The login check in WCFACP correctly redirects to the `wcf` app even if an application controller is requested. The index controller redirect was cleaned up in the previous commit. --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 65f13ce854..68d7452e03 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -160,20 +160,6 @@ final class RequestHandler extends SingletonFactory } else { $controller = $routeData['controller']; - if ( - $this->isACPRequest() - && ($controller === 'login' || $controller === 'index') - && $application !== 'wcf' - ) { - HeaderUtil::redirect( - LinkHandler::getInstance()->getLink(\ucfirst($controller)), - true, - false - ); - - exit; - } - $classApplication = $application; if ( !empty($routeData['isDefaultController'])