Filter with custom vars creates wrong filter url
Describe the bug
Filters which use only one custom vars and the same custom vars as dimension, will be constructed wrongly when klicking on "Show Services Status" or "Show Hosts status".
Example Filter: cube/services?service.vars.rpaprocess=bob&dimensions=service.vars.rpaprocess
To Reproduce
Create a service or host cube like the following. Use the same custom vars for filtering and the dimension.
Then navigate to klick on the show status button.
The highlighted link already shows the wrong url.
You can see that the filter is not correct and therefore the cube doesn't work.
Your Environment
Include as many relevant details about the environment you experienced the problem in
- Web browser used: Edge/Firefox
- Icinga 2 version used (
icinga2 --version): 2.14.5 - Server operating system and version: Rhel 8
Related to https://github.com/Icinga/icingadb-web/issues/973