From: Alexander Ebert Date: Sat, 20 Jun 2015 19:24:37 +0000 (+0200) Subject: Fixed default controller causing a redirect if it was renamed X-Git-Tag: 2.1.5~17^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eca973ef5d2044d837c23c59674687fffcf8e33c;p=GitHub%2FWoltLab%2FWCF.git Fixed default controller causing a redirect if it was renamed --- 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; }