useplunk / plunk

The Open-Source Email Platform
https://www.useplunk.com
GNU Affero General Public License v3.0
2.95k stars 136 forks source link

Pasting an link with a template tag breaks the template #75

Closed nik-lampe closed 1 month ago

nik-lampe commented 2 months ago

I stumbled across this, when setting up the double opt-in as described in the documentation.

When I create a new template, and just paste this link: https://example.com/subscribe/{{plunk_id}}. It doesn't really matter if there is any other text in the template, then it get's saved like this in the database:

<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://example.comsubscribe/{{plunk_id">https://example.com/subscribe/{{plunk_id</a>}}</p>

Note the missing }} in the href and the closing a tag before the closing brackets. This has the effect that the email when rendered does not have any body at all.

driaug commented 1 month ago

Fixed by #80