Index: typo3/sysext/cms/tslib/class.tslib_fe.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_fe.php (revision 3215) +++ typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) @@ -1562,7 +1562,7 @@ } } else { $message = 'You logged out from Workspace preview mode. Click this link to go back to the website'; - } + } die(sprintf($message, htmlspecialchars(ereg_replace('\&?ADMCMD_prev=[[:alnum:]]+','',t3lib_div::_GET('returnUrl'))) )); @@ -1942,6 +1942,10 @@ $this->setSimulReplacementChar(); } + if ($this->config['config']['typolinkEnableLinksAccrosDomains']) { + $this->config['config']['typolinkCheckRootline'] = true; + } + // Set default values for removeDefaultJS, inlineStyle2TempFile and minifyJS so CSS and JS are externalized/minified if compatversion is higher than 4.0 if (t3lib_div::compat_version('4.0')) { if (!isset($this->config['config']['removeDefaultJS'])) { Index: typo3/sysext/cms/tslib/class.tslib_content.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_content.php (revision 3215) +++ typo3/sysext/cms/tslib/class.tslib_content.php (working copy) @@ -5284,7 +5284,7 @@ // Add "&MP" var: $addQueryParams.= '&MP='.rawurlencode(implode(',',$MPvarAcc)); } - elseif ($GLOBALS['TSFE']->config['config']['typolinkCheckRootline']) { + elseif ($GLOBALS['TSFE']->config['config']['typolinkCheckRootline']) { // This checks if the linked id is in the rootline of this site and if not it will find the domain for that ID and prefix it: $tCR_rootline = $GLOBALS['TSFE']->sys_page->getRootLine($page['uid']); // Gets rootline of linked-to page $tCR_flag = 0; @@ -5307,15 +5307,20 @@ } } // If other domain, overwrite - if (strlen($tCR_domain)) { + if (strlen($tCR_domain) && !$GLOBALS['TSFE']->config['config']['typolinkEnableLinksAccrosDomains']) { $target = isset($conf['extTarget']) ? $conf['extTarget'] : $GLOBALS['TSFE']->extTarget; if ($conf['extTarget.']) {$target = $this->stdWrap($target, $conf['extTarget.']);} if ($forceTarget) {$target=$forceTarget;} $LD['target'] = $target; $this->lastTypoLinkUrl = $this->URLqMark('http://'.$tCR_domain.'/index.php?id='.$page['uid'],$addQueryParams).$sectionMark; } else { // Internal link: - if ($forceTarget) {$target=$forceTarget;} + if ($forceTarget) { + $target=$forceTarget; + } $LD = $GLOBALS['TSFE']->tmpl->linkData($page,$target,$conf['no_cache'],'','',$addQueryParams,$theTypeP); + if (strlen($tCR_domain)) { + $LD['totalURL'] = 'http://' . $tCR_domain . ($LD['totalURL']{0} == '/' ? '' : '/') . $LD['totalURL']; + } $this->lastTypoLinkUrl = $this->URLqMark($LD['totalURL'],'').$sectionMark; }