Skip to content

Commit

Permalink
Update MenuItemMatcher.php, fix menu active status
Browse files Browse the repository at this point in the history
Relate issue: #6704
  • Loading branch information
ywisax authored Jan 12, 2025
1 parent b76eca4 commit 2695291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Menu/MenuItemMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private function doMarkSelectedPrettyUrlsMenuItem(array $menuItems, Request $req
// 2) if no exact match is found, traverse all menu items again and try to find a partial match
$currentUrlWithoutHost = $request->getPathInfo();
$currentUrlQueryParams = $request->query->all();
unset($currentUrlQueryParams['sort'], $currentUrlQueryParams['page']);
unset($currentUrlQueryParams['sort'], $currentUrlQueryParams['page'], $currentUrlQueryParams['query']);
// sort them because menu items always have their query parameters sorted
ksort($currentUrlQueryParams);

Expand Down

0 comments on commit 2695291

Please sign in to comment.