Drupal, by default does not recognise URL queries when loading menu items. Thus when there are multiple menu items with the same path but different URL queries, Drupal loads first menu item that has the matching path without looking at the query.
This module provides a workaround for that by overriding the menu item and active menu trail for any page that has a menu item and has query parameter set.
No configuration is required, just install and you're off.
Caveats:
May cause a performance hit, only use if you really need this.
Naturally, since each matching menu item has to be loaded and its query inspected, there is a performance hit on each request.
Database and static caches are being leveraged, however the performance hit cannot be completely solved.
If there are multiple menu items with the same base path and query parameters, only the first item is used.
If you land on a page with a query which does not have a menu item but the base path exists in the database, the module will try and use the menu item without a query. E.g.:
If you land on a views page with a filter set in the URL such as "my/views/page?filter=2" which has a menu item, it will be set correctly.
The Optify module allows Drupal website owners to quickly and easily integrate the Optify digital marketing platform. The module exposes javascript tracking code on all website pages. In addition, the module lets website owners set pages that should not be tracked by Optify. Drupal website owners will need to sign-up at Optify before being able to complete the module's configuration settings.