How to escape variables passed in URL


#1

So I have dashboard A which links to dashboard B and passes $parentName as variable in the URL.
$parentName value can contain & character, example: “This & that”.
Currently Grafana is not escaping the & characters, how can I achieve this?


#2

how are you defining the links (where?).


#3

I’ve defined a link from one dashboard to the other. Check screenshot below for details, let me know if you need more information.

This is how the variable is passed on the URL, spaces are escaped but the & character is not.

http://hostname/d/7mu3uT_mk/application-detail?from=now-6h&to=now&var-parentApp=Trading%20Platforms%20&%20Client%20Experience&orgId=1


#4

Can you provide any help please?