<@ULVA73B9P>, Why is this Jinja template body in a...
# ask-marvin
d
@Marvin, Why is this Jinja template body in a automation not displaying a hyperlinked text? ui_url }} Flow Run URL/a My goal is to not display the long UI URL in a Slack notification and instead have the "Flow Run URL" be hyperlinked with the flow URL.
m
thought for 276.7 seconds
Short answer: Slack doesn’t render HTML. The
<a href=...>
tag will be shown as plain text. Use Slack’s link formatting in your automation body instead:
Copy code
<{{ flow_run | ui_url }}|Flow Run URL>
Example message:
Copy code
Flow "{{ flow_run.name }}" is {{ flow_run.state.name }}.
<{{ flow_run | ui_url }}|Open in Prefect UI>
That will display “Flow Run URL” as a clickable hyperlink to the run in Slack. Refs: - Slack formatting for links: Slack docs
👍 1