Skip to content

Commit

Permalink
Merge branch '5.2-dev' into save_categoery_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman authored Jul 24, 2024
2 parents 0e29e91 + a03c8ad commit 224214d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@

$config = new PhpCsFixer\Config();
$config
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRiskyAllowed(true)
->setHideProgress(false)
->setUsingCache(false)
Expand Down
6 changes: 6 additions & 0 deletions libraries/src/Router/SiteRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 224214d

Please sign in to comment.