# Dynamic URL in Email button not working

**URL:** <https://forum.mautic.org/t/dynamic-url-in-email-button-not-working/10234>\
**Category:** General Discussion\
**Created:** [February 15, 2018, 4:08am UTC](https://forum.mautic.org/t/dynamic-url-in-email-button-not-working/10234 "2018-02-15T04:08:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bunce69](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bunce69/32/143_2.png) [@bunce69](https://forum.mautic.org/u/bunce69)\
**Post date:** [February 15, 2018, 4:08am UTC](https://forum.mautic.org/t/dynamic-url-in-email-button-not-working/10234/1 "2018-02-15T04:08:00Z")

</div>

Hello guys,

I’m trying to make a dynamic url into some buttons in my emails.

For example :  
href=“[https://domain.com/{contactfield=firstname}](https://domain.com/%7Bcontactfield=firstname%7D)” but it doesn’t work.

It works if I do it as a text, but it doesn’t work when I integrate this code in the button.

Any idea?

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [February 16, 2018, 2:43am UTC](https://forum.mautic.org/t/dynamic-url-in-email-button-not-working/10234/2 "2018-02-16T02:43:08Z")

</div>

This has been resolved… so far

---

<div class="post-metadata">

**Author:** ![dbhurley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dbhurley/32/2_2.png) [@dbhurley](https://forum.mautic.org/u/dbhurley)\
**Post date:** [February 17, 2018, 12:11pm UTC](https://forum.mautic.org/t/dynamic-url-in-email-button-not-working/10234/3 "2018-02-17T12:11:50Z")

</div>

Please post the solution or conclusion to the forum so that others see the “question” and “answer” in case it helps them too!

---

<div class="post-metadata">

**Author:** ![chschubert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chschubert/32/1532_2.png) [@chschubert](https://forum.mautic.org/u/chschubert)\
**Post date:** [March 4, 2020, 4:35pm UTC](https://forum.mautic.org/t/dynamic-url-in-email-button-not-working/10234/4 "2020-03-04T16:35:29Z")

</div>

Hi, I’m currently experience the same problem (Mautic 2.16, Nginx, no docker): the content of the token is not applied when sending the mail.

This is how the URL is shown in Browser URL-field when opened from the mail. The link in the mail contains the tracking hashes:

…n-dollar?%7Bcontactfield=deeplink\_hash%7D

Any hint where to search to solve this issue?

Thanks in advance!

Best Regards

Christian
