Project

General

Profile

Actions

Bug #18660

closed

Links to Mount Pages (Substitute Mount Point) that cross domains/sites are broken by Typolink

Added by Slite about 16 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2008-04-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

mp_menus_crosssite.diff (2.23 KB) mp_menus_crosssite.diff Administrator Admin, 2008-04-23 19:03
mp_menus_crosssite-v2.diff (2.27 KB) mp_menus_crosssite-v2.diff Administrator Admin, 2008-04-24 14:25
8189v1.diff (700 Bytes) 8189v1.diff Administrator Admin, 2008-07-30 11:55
mp_menus_crosssite-v3.diff (2.82 KB) mp_menus_crosssite-v3.diff Administrator Admin, 2008-07-30 12:33
mp_menus_crosssite-v4.diff (3.1 KB) mp_menus_crosssite-v4.diff Administrator Admin, 2008-11-12 22:05

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #18978: typolinkEnableLinksAcrossDomains doesn't work properly with mount pagesClosedKarsten Dambekalns2008-06-18

Actions
Is duplicate of TYPO3 Core - Bug #19623: Mountpoints do not work across domain boundariesClosedDmitry Dulepov2008-11-19

Actions
Actions

Also available in: Atom PDF