diff --git a/libraries/src/Router/SiteRouter.php b/libraries/src/Router/SiteRouter.php index 38b53407aafe1..7c7048e7d9e6a 100644 --- a/libraries/src/Router/SiteRouter.php +++ b/libraries/src/Router/SiteRouter.php @@ -299,8 +299,8 @@ protected function parseSefRoute(&$uri) // If user not allowed to see default menu item then avoid notices if (is_object($item)) { - // Set the information in the request - $vars = $item->query; + // Set query variables of default menu item into the request, keeping existing request variables + $vars = array_merge($vars, $item->query); // Get the itemid $vars['Itemid'] = $item->id;