Remove enforced redirect of `login` and `index` controller in ACP to the `wcf` applic...
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 11:38:33 +0000 (13:38 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 11:44:44 +0000 (13:44 +0200)
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.

wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 65f13ce854c612238298d6362271f5ef7916974d..68d7452e038d252b3dca567e0986145aeb95424f 100644 (file)
@@ -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'])