$anchor = '';
$isACP = $originIsACP = RequestHandler::getInstance()->isACPRequest();
$isRaw = false;
- $appendSession = $encodeTitle = true;
+ $encodeTitle = true;
+
+ /**
+ * @deprecated 2.2 - no longer required
+ */
+ $appendSession = false;
// enforce a certain level of sanitation and protection for links embedded in emails
if (isset($parameters['isEmail']) && (bool)$parameters['isEmail']) {
$parameters['forceFrontend'] = true;
- $parameters['appendSession'] = false;
unset($parameters['isEmail']);
}
unset($parameters['isRaw']);
}
if (isset($parameters['appendSession'])) {
- $appendSession = $parameters['appendSession'];
unset($parameters['appendSession']);
}
if (isset($parameters['isACP'])) {
$isACP = (bool) $parameters['isACP'];
unset($parameters['isACP']);
-
- // drop session id if link leads to ACP from frontend or vice versa
- if ($originIsACP != $isACP) {
- $appendSession = false;
- }
}
if (isset($parameters['forceFrontend'])) {
if ($parameters['forceFrontend'] && $isACP) {
$isACP = false;
- $appendSession = false;
}
unset($parameters['forceFrontend']);
}
$url = $routeURL . $url;
- // append session id
- if ($appendSession) {
- $url .= (strpos($url, '?') === false) ? SID_ARG_1ST : SID_ARG_2ND_NOT_ENCODED;
- }
-
// handle applications
if (!PACKAGE_ID) {
$url = RouteHandler::getHost() . RouteHandler::getPath(['acp']) . ($isACP ? 'acp/' : '') . $url;