Index: class.tslib_content.php =================================================================== --- class.tslib_content.php (revision 1930) +++ class.tslib_content.php (working copy) @@ -5758,9 +5758,10 @@ } // 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)) { - $targetDomain = $currentDomain; + //additional brackets for correcting operator predecence && -> ||; otherwise the currentdomain is always taken if the url_scheme differs + if ($targetDomain === '' && ($conf['forceAbsoluteUrl'] || + $absoluteUrlScheme !== parse_url(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), PHP_URL_SCHEME))) { + $targetDomain = $currentDomain; } }