Index: typo3/sysext/cms/tslib/class.tslib_content.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_content.php (revision 5948) +++ typo3/sysext/cms/tslib/class.tslib_content.php (working copy) @@ -6120,6 +6120,19 @@ $LD = $this->lastTypoLinkLD; } + //check absolute and https configuration + if ($conf['forceAbsoluteUrl']) { + if (!strpos('http://',$this->lastTypoLinkUrl) && !strpos('https://',$this->lastTypoLinkUrl)) { + //link is not absolute yet + $this->lastTypoLinkUrl = t3lib_div::locationHeaderUrl($this->lastTypoLinkUrl); + } + } + if ($conf['forceHttps']) { + //an absolute link is forced to https + $this->lastTypoLinkUrl = str_replace('http://','https://', $this->lastTypoLinkUrl); + } + + // Rendering the tag. $finalTagParts['url']=$this->lastTypoLinkUrl; $finalTagParts['targetParams']=$targetPart;