Bug #14449
closedTypolink-generation with mount points does not work over multiple domains
0%
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
Updated by Marco Geweke over 19 years ago
After further investigations i could not find any negative behaviour of mounted pages resulting from this patch.
Updated by Axel Jindra over 18 years ago
This does not yet seem to be resolved in the core of 4.0beta3, as I have the same problem with a mounted page tree which is outside of the tree with the domain record. A jump into one of the subpages of the mounted tree works but all subsequent jumps within the mounted tree fail.
The links are created as follows:
first call (from outside): http://srv.domain.tld/a.html?&MP=51-1097
next call (from inside): http://srv.domain.tld/b.html?&MP=51-1097%2C51-1097