use wcf\system\exception\UserInputException;
use wcf\system\request\LinkHandler;
use wcf\system\request\RequestHandler;
-use wcf\system\request\RouteHandler;
use wcf\system\user\authentication\EmailUserAuthentication;
use wcf\system\user\authentication\event\UserLoggedIn;
use wcf\system\user\authentication\UserAuthenticationFactory;
if (!empty($this->url)) {
HeaderUtil::redirect($this->url);
} else {
- if (RequestHandler::getInstance()->inRescueMode()) {
- $path = RouteHandler::getHost() . RouteHandler::getPath();
- } else {
- $application = ApplicationHandler::getInstance()->getActiveApplication();
- $path = $application->getPageURL() . 'acp/';
- }
+ $application = ApplicationHandler::getInstance()->getActiveApplication();
+ $path = $application->getPageURL() . 'acp/';
HeaderUtil::redirect($path);
}
if (!PACKAGE_ID) {
$url = RouteHandler::getHost() . RouteHandler::getPath(['acp']) . ($isACP ? 'acp/' : '') . $url;
} else {
- if (RequestHandler::getInstance()->inRescueMode()) {
- $pageURL = RouteHandler::getHost() . \str_replace('//', '/', RouteHandler::getPath(['acp']));
- } else {
- $application = ApplicationHandler::getInstance()->getApplication($abbreviation);
- if ($application === null) {
- throw new \InvalidArgumentException("Unknown application identifier '{$abbreviation}'.");
- }
-
- $pageURL = $application->getPageURL();
+ $application = ApplicationHandler::getInstance()->getApplication($abbreviation);
+ if ($application === null) {
+ throw new \InvalidArgumentException("Unknown application identifier '{$abbreviation}'.");
}
+ $pageURL = $application->getPageURL();
+
$url = $pageURL . ($isACP ? 'acp/' : '') . $url;
}