VolkovLabs / business-text

The Business Text panel plugin allows you to construct a text visualization template from the values of a dataset returned by a data source query.
https://volkovlabs.io
Apache License 2.0
83 stars 13 forks source link

Opening an HTML link in a new tab #227

Closed oleg-yaschenia closed 1 year ago

oleg-yaschenia commented 1 year ago

Standard Grafana Text panel allows to use "target" attribute (like <a target = "_blank" rel="noopener noreferrer" href = "example.com") for html and it allows to open HTML link in new tab (window), but it doesn't work in the Dynamic Text panel. Are there other possible ways to open a link in a new tab?

mikhail-vl commented 1 year ago

@oleg-yaschenia I just tested and it works as expected.

It may be sanitized in your case, I tried with sanitizing off.

<a target = "_blank" rel="noopener noreferrer" href = "https://example.com">Example</a>