Project

General

Profile

Actions

Bug #14449

closed

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

Added by Marco Geweke almost 20 years ago. Updated over 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 #1

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.

Actions #2

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

Actions #3

Updated by Wolfgang Klinger over 18 years ago

fixed in CVS, please test

Actions

Also available in: Atom PDF