Fixes redirect
authorAlexander Ebert <ebert@woltlab.com>
Thu, 2 Jan 2014 10:37:58 +0000 (11:37 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 2 Jan 2014 10:37:58 +0000 (11:37 +0100)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index fb31735d66e635bacaf165286eafd0ec6caa9cd3..cfbbe2b1eee07af1bb256f54e34612f211b25ead 100644 (file)
@@ -141,7 +141,7 @@ class RequestHandler extends SingletonFactory {
                                                        if ($currentRequestURI == $application->getPageURL()) {
                                                                if ($controller = WCF::getApplicationObject($application)->getPrimaryController()) {
                                                                        $controller = explode('\\', $controller);
-                                                                       HeaderUtil::redirect(LinkHandler::getInstance()->getLink(array_pop($controller), array('application' => $controller[0])));
+                                                                       HeaderUtil::redirect(LinkHandler::getInstance()->getLink(preg_replace('~(Action|Form|Page)$~', '', array_pop($controller)), array('application' => $controller[0])));
                                                                        exit;
                                                                }
                                                        }