Version: v5.11.66
Environment: Docker
Checklist
- Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja? N/A
- Have you searched existing issues? Yes
- Have you inspected the logs in storage/logs/laravel.log for any errors? N/A
Problem Description
I’m using SES for sending emails, and am trying to disable link tracking, which requires adding a custom ses:no-track
attribute to the links, like so:
<a ses:no-track href="aws.amazon.com">Amazon Web Services</a>
Steps To Reproduce
- Navigate to Settings → Templates & Reminders
- Modify the email template to contain a URL link
- Click on
...
and then<>
to view the Source Code of the template - Add
ses:no-track
to<a
tag - Click Save
- Open Source Code again
- Observe that the custom attribute wasn’t saved
Expected Behavior
Custom attribute of <a
is saved
Additional context
While I can disable tracking feature altogether in AWS Console, I’d still like to track email opens, just not the clicks (because I don’t want to have garbled links that might not open for the customers, if they’re using an ad-blocker). Adding ses:no-track
attr seems to be the only way currently to achieve this selective tracking.
More broadly, is it possible to customize HTML templates in other situations like this, or does the template editor always “sanitize” them with only the list of supported attributes?
Thank you!