jmix icon indicating copy to clipboard operation
jmix copied to clipboard

URL query parameters are applied multiple times

Open KremnevDmitry opened this issue 8 months ago • 0 comments

Environment

Jmix version: 2.3.999-SNAPSHOT

Bug Description

If the query parameters that were used for the queryParametersFacet are defined using menu.xml then: Screen Recording 2024-06-05 at 10 20 06

Steps To Reproduce

  1. Download an attached project
  2. Log in as admin-admin
  3. Click on Users menu item multiple times

Current Behavior

Query parameters will be added every time.

Expected Behavior

Query parameters will be added once.

Sample Project

jmix-top-menu.zip

The reason

The reason is that when navigating to the same view, if the query parameters are changed, the view is not recreated. The same view instance is used and the logic for adding filters is applied to it again.

KremnevDmitry avatar Jun 05 '24 07:06 KremnevDmitry