diff --git a/libraries/src/Router/SiteRouter.php b/libraries/src/Router/SiteRouter.php index 921b8ae56052b..0637deaf71c0a 100644 --- a/libraries/src/Router/SiteRouter.php +++ b/libraries/src/Router/SiteRouter.php @@ -309,6 +309,12 @@ public function parseRawRoute(&$router, &$uri) $item = $this->menu->getItem($uri->getVar('Itemid')); } else { $item = $this->menu->getDefault($this->app->getLanguage()->getTag()); + + if ($item->query['option'] !== $uri->getVar('option', $item->query['option'])) { + // Set the active menu item + $this->menu->setActive($item->id); + $item = false; + } } if ($item && $item->type === 'alias') {