pentacent / keila

Open Source Newsletter Tool.
https://keila.io
GNU Affero General Public License v3.0
1.25k stars 61 forks source link

Using custom data in button urls doesn't work in the new editor #235

Open vinnpinn opened 9 months ago

vinnpinn commented 9 months ago

With the old editor using markdown, it's possible to use custom data for filling out a URL on a button.

Using the new editor.js editor, it requires a correct URL syntax, which isn't an issue if the base url is the same. However it also doesn't replace the tags with the custom data. So using https://example.com/{{ contact.data.custom_url}} as the url for the button works in the old editor, but not in the new one. When using this in the new editor, it'll use https://example.com/%7B%7B%20contact.data.custom_url%20%7D%7D as the domain on the button.