From 59ce1b93246cef427412cd2c0676ddaf3d0b190b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 2 Jan 2014 11:37:58 +0100 Subject: [PATCH] Fixes redirect --- .../install/files/lib/system/request/RequestHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index fb31735d66..cfbbe2b1ee 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -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; } } -- 2.20.1