[BUGFIX] Link to mounted shortcut page lacks &MP parameter
authorXavier Perseguers <xavier@typo3.org>
Tue, 3 Jan 2012 08:26:42 +0000 (09:26 +0100)
committerXavier Perseguers <xavier@typo3.org>
Thu, 12 Jan 2012 13:54:31 +0000 (14:54 +0100)
Menu generation for a shortcut page within a mount point does not
include the &MP parameter and other configured additional parameters.

Change-Id: Idb19f260fa0af8f73c8bc3441702a2b644017272
Fixes: #32938
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/7656
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/cms/tslib/class.tslib_menu.php

index e733862..9244864 100644 (file)
@@ -1188,7 +1188,10 @@ class tslib_menu {
                        }
 
                                // Only setting url, not target
-                       $LD['totalURL'] = $this->parent_cObj->typoLink_URL(array('parameter' => $shortcut['uid']));
+                       $LD['totalURL'] = $this->parent_cObj->typoLink_URL(array(
+                               'parameter' => $shortcut['uid'],
+                               'additionalParams' => $this->mconf['addParams'] . $MP_params . $this->I['val']['additionalParams'] . $this->menuArr[$key]['_ADD_GETVARS'],
+                       ));
                }
 
                        // Manipulation in case of access restricted pages: