Bug #63486
closedTypolink checks only against one domainname
0%
Description
Typolink now checks only against the cached domainrecord when comparing $currentDomain with $targetDomain. In version 4.5 typolinks checked against all domainrecords in rootline. This is a problem, because it is not possible to change the domain e.g. for changing language purposes. When changing domainname and set config.baseUrl to this domainname (over TS-Condition) there should be only relative links, but typolink now do not recognize, that the changed domainname is in rootline too, and generates absolute links to the first domainrecord.
This is made now in class TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer.php in line 6033 > $GLOBALS['TSFE']>getDomainNameForPid() and afterwards the comparing. Before (in v4.5) here was compared against domainname-array with all domainrecord in rootline (class.tslib_content.php, line 5794).