Project

General

Profile

Bug #24642 » 17118_JvH_v2.patch

Administrator Admin, 2011-02-09 20:27

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
}
// If no domain records are defined, use current domain:
if ($targetDomain === '' && $conf['forceAbsoluteUrl'] ||
$absoluteUrlScheme !== parse_url(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), PHP_URL_SCHEME)) {
if ($targetDomain === '' && $conf['forceAbsoluteUrl']) {
$targetDomain = $currentDomain;
}
if ($absoluteUrlScheme !== parse_url(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), PHP_URL_SCHEME)) {
if ($GLOBALS['TSFE']->config['config']['absRefPrefix']) {
$targetDomain = $currentDomain;
} else {
$targetDomain = $currentDomain . rtrim(t3lib_div::getIndpEnv('TYPO3_SITE_PATH'), '/');
}
}
}
// If target page has a different domain and the current domain's linking scheme (e.g. simulateStaticDocuments/RealURL/...) should not be used
(4-4/5)