xm-online / xm-webapp

XM^online 2 - Open Source version of the XME.digital core platform
https://xme.digital
Apache License 2.0
14 stars 7 forks source link

feat: xm-breadcrumbs – keep query params #2125

Closed denisogolubev closed 2 months ago

denisogolubev commented 2 months ago

If during navigation your url has queryParams and when you click on previous crumb (to navigate on previous page) you want to keep some of existing queryParams just specify them in dashboard config as array of strings.

For ex: url: https://domain.com/dashboard/parent/child1/child2??callId=123&userId=123-123

breadcrumbs: Parent > Child1 > Child2

So, now you on Child2 page, if you want to go back to Child1 page and keep userId param in url, then add to the Child1 dashboard config:

{
  "keepQueryParams": [
      "userId"
    ]
}