Handlebars in buttons (design template) don't work
Expected content
When using a Button Module, it generates the HTML as expected with the handlebars in the href tag, I have put the handlebars under "Button URL" in the module settings.
<a style="background-color:#2896df;border:1px solid #333333;border-color:#ffffff;border-radius:6px;border-width:1px;color:#ffffff;display:inline-block;font-family:arial,helvetica,sans-serif;font-size:16px;font-weight:normal;letter-spacing:0px;line-height:16px;padding:12px 18px 12px 18px;text-align:center;text-decoration:none" href="{{link}}" target="_blank">Reset password</a>
When I send the e-mail with the link handlebar link provided, I would expect to have it the correct url.
<a style="padding: 12px 18px; border-radius: 6px; border: 1px solid rgb(255, 255, 255); border-image: none; text-align: center; color: rgb(255, 255, 255); line-height: 16px; letter-spacing: 0px; font-family: arial,helvetica,sans-serif; font-size: 16px; font-weight: normal; text-decoration: none; display: inline-block; background-color: rgb(40, 150, 223);" href="https://localhost:4520/authentication/reset?userId=adasf34124&token=longtokenhere" target="_blank">Reset password</a>
Actual content
When viewing the e-mail received "In browser" (from outlook), I get this content:
<a style="padding: 12px 18px; border-radius: 6px; border: 1px solid rgb(255, 255, 255); border-image: none; text-align: center; color: rgb(255, 255, 255); line-height: 16px; letter-spacing: 0px; font-family: arial,helvetica,sans-serif; font-size: 16px; font-weight: normal; text-decoration: none; display: inline-block; background-color: rgb(40, 150, 223);" href="https://localhost:4520/authentication/reset?userId=adasf34124&token=longtokenhere" target="_blank">Reset password</a>
Link to page: https://sendgrid.com/docs/for-developers/sending-email/using-handlebars/#password-reset
@Ruud-cb
I think you might have goofed with the actual content as there is no difference between the expected content and actual content.
My guess as to what you are likely seeing is that since you are using {{link}} as your substitution you might be seeing the link encoded by handlebars. This is an easy fix. Just change {{link}} to {{{link}}} and this will prevent handlebars from doing any kind of encoding.
I have gone ahead an updated the example code to help prevent issues like this.
If this was not your issue please let me know.