Skip to content

Match URL with query string #65

Open
@jjoseba

Description

@jjoseba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions