URL Encode in Data Links in Table override

Is there any what to URL encode the value in Data Link overrides?
So I have a table, one of the columns is set up with Data Links
/?var-name=${__data.fields[name]}
If the name filed value contains ‘&’, then the URL will be broken, because it will consider & as a new URL parameter.

The solution will be to replace it with ‘%26’, which can be done on the query level, but in the Grafana Table plugin, it’s not possible to hide column and use the value of it in another column for URL. Table: Ability to hide fields but still reference them in data links · Issue #24092 · grafana/grafana · GitHub

Could anyone help?

If anyone needs it, the solution is the :percentcode modifier, which I have overlooked.

3 Likes

This topic was automatically closed after 365 days. New replies are no longer allowed.