#18660Links to Mount Pages (Substitute Mount Point) that cross domains/sites are broken by Typolink
Description
If you link to page which mount’s a page in another site and the initial page has “Substitute Mount Point” set then the link is created with host information from the domain record(s) of the mounted page. Since the mount point information points to information in the original site you get an error as the original location can’t be determined. Manually changing the host part of the URL to the correct one shows the page as expected.
The problem appears to be that the mounted page’s domain takes priority in tslib_content::typolink if no host has already been added to the link (Line 5365 of class.tslib_content.php) However, the host is only set (by t3lib_tstemplate::linkData) if ‘config.absRefPrefix’ is set.
The work around is to set config.absRefPrefix.
This shows up in menus now that they use typolink, and also from links in pages.
(issue imported from #M8189)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.