<?php
namespace wcf\acp\action;
use wcf\action\AbstractSecureAction;
+use wcf\system\application\ApplicationHandler;
use wcf\system\exception\IllegalLinkException;
use wcf\system\WCF;
use wcf\util\HeaderUtil;
// forward to index page
// warning: if doLogout() writes a cookie this is buggy in MS IIS
- HeaderUtil::redirect('index.php'.SID_ARG_1ST);
+ $application = ApplicationHandler::getInstance()->getActiveApplication();
+ $path = $application->getPageURL() . 'acp/index.php' . SID_ARG_1ST;
+ HeaderUtil::redirect($path);
exit;
}
}
namespace wcf\acp\form;
use wcf\data\user\User;
use wcf\form\AbstractForm;
+use wcf\system\application\ApplicationHandler;
use wcf\system\exception\PermissionDeniedException;
use wcf\system\exception\UserInputException;
use wcf\system\user\authentication\EmailUserAuthentication;
HeaderUtil::redirect($this->url);
}
else {
- HeaderUtil::redirect('index.php'.SID_ARG_1ST);
+ $application = ApplicationHandler::getInstance()->getActiveApplication();
+ $path = $application->getPageURL() . 'acp/index.php' . SID_ARG_1ST;
+ HeaderUtil::redirect($path);
}
exit;
}