title: Sendgrid: How to add a dynamic link to an email template?
body: <p>I am trying to have a link in my email template that would sort of look like this:</p>
  
  <pre><code>&lt;a href={{url}}&gt;click here&lt;/&gt;
  </code></pre>
  
  <p>The above link has been added in de "designer" by adding a "custom" link. The value for this like I enterd as {{url}}.</p>
  
  <p>I pass an url value in the dynamic_template_data, like so:</p>
  
  <pre><code>const msg = {
    to: savedAdmin.email,
    from: process.env.EMAIL_ADDRESS,
    templateId: process.env.SENDGRID_NEW_ADMIN_TEMPLATE_ID,
    personalizations: [
      {
        to: [{email: savedAdmin.email}],
        dynamic_template_data: {
          name: savedAdmin.first_name,
          url: process.env.CMS_URL,
          email: savedAdmin.email,
          password: randomPassword,
        },
      },
    ],
  };
  </code></pre>
  
  <p>However, the url gets rendered like this when I receive the mail in my inbox:</p>
  
  <pre><code>http://url9905.myweb.shop/ls/click?upn=BMmHdsRoNrbb0-2FMI-2BBVvCjpDiCceHLG5U2u5OCf29QV6iCtfuvZYId1FE95cTz9uyMY31z9fQ7iR-2BPgq-2FkquvxdAPC0oMKiLa3DRglYUSVP-2FRmYbDQ-2BdFGnczXk75K3Ym8rSodsrAy-2BfNDJwqA7RDeemPFjepjRsUdci9CA6Y0-....
  </code></pre>
  
  <p>How do I get this to work?</p>