Project

General

Profile

Actions

Bug #14449

closed

Typolink-generation with mount points does not work over multiple domains

Added by Marco Geweke over 19 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2004-12-14
Due date:
% Done:

0%

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

Description

When mounting a page that comes from a tree with another domain record, the generation of links to subpages of the mounted page is faulty.
config.typolinkCheckRootline has to be activated to reproduce this.

The error-message:

Error! The requested page didn't have a proper connection to the tree-root!
(MP value remain!)

The generated links point to the domain record of the mounted page, but they should point to the domain of the mountpage instead. TYPO3 adds the &MP=xxx to the wrong domain resulting in the error message above when following the link.

I added a quick (and dirty?) patch to class.tslib_content.php that solves the problem in our case. I don't know, if it will work in all cases.

--- class.tslib_content_unpatched.php 2004-12-14 11:37:30.000000000 0100
++ class.tslib_content.php 2004-12-14 11:52:07.000000000 0100
@ -4985,6 +4985,7 @
}
// Add "&MP" var:
if (count($MPvarAcc)) {
$tCR_domain = ''; // don't use another domain for links to subpages of the mounted page
$addQueryParams.= '&MP='.rawurlencode(implode(',',$MPvarAcc));
}
// If other domain, overwrite

This patch is also attached as file. It was made to version 3.7.0.
(issue imported from #M608)


Files

0000608-mp-patch.txt (450 Bytes) 0000608-mp-patch.txt Administrator Admin, 2004-12-14 11:59

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #14827: Page mount points & manually added cross domain links are not workingClosed2005-06-17

Actions
Actions

Also available in: Atom PDF