Currently, if a MenuItem receives a URL with query params, since the url match is done against the request.path, there is no way for that item to be checked as active.
For example, if I configure this item:
Menu.add_item("main", MenuItem(_("Item"), reverse('app:my_view')+'?status=active', weight=10))
That item will not be marked as the active item. Maybe MenuItem() could receive an additional argument to be able to take into account the current queryparam for the match_url() method.
Currently, if a
MenuItemreceives a URL with query params, since the url match is done against therequest.path, there is no way for that item to be checked as active.For example, if I configure this item:
That item will not be marked as the active item. Maybe
MenuItem()could receive an additional argument to be able to take into account the current queryparam for thematch_url()method.