Skip to content

Link: unexpected behavious in active-state #1082

@timble-one

Description

@timble-one

Happy Case

If i create a Link with this route /individual-products and navigate to some sub-page: /individual-products/367
The overview-Link will stay active.

Problem Case

When i create a Link with this route: /product-groups?nameOrder=ASC and navigate to some sub-page: /product-groups/76
The Overview-Link won't stay active:

Subpaths are considered as active which is a good thing from my perspective but they arent, if the Link contains some query-parameters.
This is because the query-parameters are compared as well.

Is there an option to disable this beheviour. I think in mostcases it is very practival to have some query-params (filters) on an overview page and when navigating on a specific element, the overview-Link should stay active.

Visualization

Link is active.

Image

Link is not active because of the query-params it contains

Image

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