GitHub user goutamadwant added a comment to the discussion: Explore in superset 
Email

In 4.1.2, `EMAIL_REPORTS_CTA` controls the link text, not whether the link is 
included. 
[`EmailNotification._get_content()`](https://github.com/apache/superset/blob/4.1.2/superset/reports/notifications/email.py)
 always emits:

```html
<b><a href="{self._content.url}">{call_to_action}</a></b><p></p>
```

Setting the text to `""` therefore leaves an anchor with the original URL in 
the email HTML.

To remove that URL in this version, you would need to customize the email 
notification implementation: remove this anchor, or make its inclusion 
conditional on a nonempty CTA. Also update `_error_template()` in the same 
file, which independently includes the link in failure emails. These are inline 
Python templates, not a separate Jinja email template.

Deploy the customization to the workers that generate reports, then check the 
raw source of both a successful report email and an error email to confirm the 
`href` is gone.


GitHub link: 
https://github.com/apache/superset/discussions/43716#discussioncomment-18325189

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to