From ed55fc721676e3a5b7cf52995c2f2701a4902f1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 27 May 2022 13:44:01 +0200 Subject: [PATCH] Redirect controller-less ACP requests to IndexPage of `wcf` --- .../install/files/lib/system/request/RequestHandler.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 61b0146377..65f13ce854 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -127,6 +127,10 @@ final class RequestHandler extends SingletonFactory if ($this->isACPRequest()) { if (empty($routeData['controller'])) { $routeData['controller'] = 'index'; + + if ($application !== 'wcf') { + $this->redirect($routeData, 'wcf', 'index'); + } } } else { // handle landing page for frontend requests -- 2.20.1