From eca973ef5d2044d837c23c59674687fffcf8e33c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 20 Jun 2015 21:24:37 +0200 Subject: [PATCH] Fixed default controller causing a redirect if it was renamed --- .../files/lib/system/request/RequestHandler.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index a596ce798d..eebd1982f7 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -301,6 +301,13 @@ class RequestHandler extends SingletonFactory { if ($landingPageApplication == $application) { $routeData['controller'] = $landingPage->getController(); if (!URL_LEGACY_MODE) $routeData['controller'] = self::getTokenizedController($routeData['controller']); + + // use alias if defined to prevent incorrect recognition + $alias = $this->getAliasByController($routeData['controller']); + if ($alias !== null) { + $routeData['controller'] = $alias; + } + return; } -- 2.20.1