You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the bug and steps to reproduce:
The campaign preview fails with error below once using dynamic template variables in combination with TrackLink handler. The generated mails are correct and track link is working fine too. Just the preview fails.
I tried this locally and it works. <a href="{{ TrackLink .Subscriber.Attribs.app_media_url }}">Test</a>. However, it fails when app_media_url isn't present. If you are unable to ensure that this field is present for all subscribers, you could put it in a {{ if .Subscriber.Attribs.app_media_url }} check instead.
Yes, it works in the preview too. Preview picks up a random subscriber from the mailing list and as long as they have the attribute value set, it works.
Version:
Description of the bug and steps to reproduce:
The campaign preview fails with error below once using dynamic template variables in combination with TrackLink handler. The generated mails are correct and track link is working fine too. Just the preview fails.
Screenshots:
{"message":"Error rendering message: template: content:222:182: executing \"content\" at \u003c.Subscriber.Attribs.app_media_url\u003e: invalid value; expected string"}
Raw HTML Template Code:
<a href="{{ TrackLink .Subscriber.Attribs.app_media_url }}"
There might be a relation with #667 . Based on the reply of @knadh we used the TrackLink handler like the given example.
The text was updated successfully, but these errors were encountered: