#47336Links between MountPoints
Description
Hi,
I just detected a problem with MountPoints. I have two MountPoints:
http://www.example.de/index.php?id=383&MP=383-2957
http://www.example.de/index.php?id=383&MP=383-4784
and I cannot link from one to the other in my navigation. When I’m in area “4784” and want to switch to area “2957” via navigation, it’s still linked to 4784. Same problem in the other direction (from 2957 to 4784), too.
When I’m in a neutral site, both links are working correctly in the navigation.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 3
-
Lars Peter Søndergaard commented 09/22/14, 11:52
-
Dmitry Dulepov commented and changed Is Regression 0 09/20/16, 13:12
This method also does not work well when the content of the mounted page has to be shown. TYPO3 will try to redirect from the mount point to the mounted page but that function will set MP to the value, which will redirect back to the mount point. Thus endless loop.
config.MP_disableTypolinkClosestMPvalue = 1solves the issue but it is unclear what side effect this will have. -
Benni Mack commented and changed status
NewClosed 05/19/20, 19:03Agree with Dmitry. We solved this issue in TYPO3 v9.5.17 now properly with site handling, please re-check. Feel free to comment so I will re-open the ticket.
I have the same issue with TYPO3 6.2.4
After tracking down the Problem in the source, which lies in the
typoLinkmethod of theContentObjectRenderclass, which calls the methodgetClosestMPvalueForPagefor the page Id and ignores the actual MP that was provided in the URL, I saw that I could disable this behavior by setting the TypoScript option:config.MP_disableTypolinkClosestMPvalueto 1. After that the Problem disappeared.It still vexes me, so I looked a bit further into the
getClosestMPvalueForPagemethod:1.
getClosestMPvalueForPagetakes the current MP value of the current page, if the pageId is the Same. But this doesn’t make sense for typoLinks, especially if the mount point is also somewhere else.2. I think the second case (the nested foreach loops) goes wrong, because it accumulates the current _MP_PARAM values from the current rootline (not the linked rootline).