How to escape variables passed in URL

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?

how are you defining the links (where?).

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.


Can you provide any help please?

@lealfaro try ${parentName:percentencode}

1 Like