How to insert raw html (hyperlink) to email message

Hi! I used in alert_resources.yml the code like this:

template: |
    {{ define "alert.additional_details" -}}  
========================================================================
       {{ if .DashboardURL }}
      - <a href="{{ .DashboardURL }}">Dashboard</a>
      {{ end -}}

Also I tried:

[Dashboard Url]({{ .DashboardURL -}})

Both returns me the output as it is like:

[Dashboard Url](``http://myurl``)

And I want to see hidden hyperlink like this:

изображение

hi @mihalt

here’s an example of a working template that uses the dashboard url element in a template

https://grafana.com/docs/grafana/latest/alerting/configure-notifications/template-notifications/examples/#print-a-link-to-a-dashboard-with-time-range

hope it helps you as a reference for your use case

I am sorry, but looks like, that no. You offer to do

Dashboard: http://localhost:3000/d/uiyahbsdaubsd?from=1740070380000&to=1740071880000

And, as I said in the topic, I want just

Dashboard url

I have huge 10+ lines links sometimes. And it is very hard to scroll to next parameters that I want to see in the message.