# {{ url }} in custom email templates is random

**URL:** <https://community.auth0.com/t/url-in-custom-email-templates-is-random/49132>\
**Category:** Get Help\
**Tags:** verification-email\
**Created:** [September 2, 2020, 11:37pm UTC](https://community.auth0.com/t/url-in-custom-email-templates-is-random/49132 "2020-09-02T23:37:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![agustin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/agustin/32/12714_2.png) [@agustin](https://community.auth0.com/u/agustin)\
**Post date:** [September 2, 2020, 11:37pm UTC](https://community.auth0.com/t/url-in-custom-email-templates-is-random/49132/1 "2020-09-02T23:37:16Z")

</div>

Hi!

I’m trying to create a template for verification emails but I’m having some trouble with the Liquid variable {{ url }}. Whenever I add it inside an that generates a link towards a weird subdomain of my custom domain (i.e [http://url9631](http://url9631)..com/ls/click?upn=LJohqq6exXbaTB5FRgGUZelOKK-2BCme-2FKast8lLZMB-2BE-3DaI\_H\_poAMRQrUwwuW-2FYxR2d6c9r5NhdxZZs5KqWqQsXXWq7ux5-2FWI-2FlxMJuWyR6Gq6xTPF7rE4pZSK2sfxonHXzQrxvxggFNhArG36XPxhWgEjDrwA84hJoidusQgNf58Au4SACkfU9hqVQZ9NGjnVD3lV02iOMy-2B-2FHbHeZExL627lhpyNEhIEjwrneI8RBCStO57UC6sn55nEDB9WfrJTQPdrvsqEp2umQ87273CikGx0rA-3D)

The weird thing is that when I render that variable through {%debug%} or outside an anchor html tag, it shows the correct url (i.e https://.com/u/email-verification?ticket=8eRmxm4bbPGqAmuPfiUx3AevVUTMsCQe#").

Any ideas of what I could be doing wrong?

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![joseantonio.rey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joseantonio.rey/32/14670_2.png) [@joseantonio.rey](https://community.auth0.com/u/joseantonio.rey)\
**Post date:** [September 3, 2020, 12:30am UTC](https://community.auth0.com/t/url-in-custom-email-templates-is-random/49132/2 "2020-09-03T00:30:31Z")

</div>

Hey @agustin - welcome to the Auth0 Community!

Some email providers will mask the links that you put in your email for tracking purposes. I believe this is the case here - your email provider is masking the link so that it can track how many clicks it gets.

Could you double check if this is a setting that you could potentially change within the email provider?

Thanks!

---

<div class="post-metadata">

**Author:** ![agustin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/agustin/32/12714_2.png) [@agustin](https://community.auth0.com/u/agustin)\
**Post date:** [September 3, 2020, 7:51am UTC](https://community.auth0.com/t/url-in-custom-email-templates-is-random/49132/3 "2020-09-03T07:51:45Z")

</div>

That’s correct! In my case I had to disable tracking with SendGrid. Now it works as it should 🙂

Thank you for the quick help!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 3, 2020, 7:54am UTC](https://community.auth0.com/t/url-in-custom-email-templates-is-random/49132/4 "2020-09-03T07:54:41Z")

</div>

Perfect! We’re here for you!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 18, 2020, 7:54am UTC](https://community.auth0.com/t/url-in-custom-email-templates-is-random/49132/5 "2020-09-18T07:54:55Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
