# Variable in href in an email button

**URL:** <https://forum.mautic.org/t/variable-in-href-in-an-email-button/27907>\
**Category:** Product Support\
**Created:** [May 4, 2023, 5:26pm UTC](https://forum.mautic.org/t/variable-in-href-in-an-email-button/27907 "2023-05-04T17:26:14Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![jichodalen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jichodalen/32/11649_2.png) [@jichodalen](https://forum.mautic.org/u/jichodalen)\
**Post date:** [March 20, 2024, 9:08pm UTC](https://forum.mautic.org/t/variable-in-href-in-an-email-button/27907/21 "2024-03-20T21:08:39Z")

</div>

this is the orig link in the unsub link:

```auto
<a href="|URL|">Unsubscribe</a>  

```

so am thinking how we can get access to that |URL| an update how it call the message.html.twig which shows the page of unsub confirmation.

---

<div class="post-metadata">

**Author:** ![thmclellan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/thmclellan/32/10282_2.png) [@thmclellan](https://forum.mautic.org/u/thmclellan)\
**Post date:** [March 20, 2024, 10:56pm UTC](https://forum.mautic.org/t/variable-in-href-in-an-email-button/27907/22 "2024-03-20T22:56:08Z")

</div>

That should be under Configuration \> Email Settings \> Unsubscribe.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/6f316b9e140e1186dd6fbd509607f642fca28170.png)

In our case we just did our own custom link with a fallback option:

```auto
<a href="{contactfield=customunsubscribelink|https://domain.com/unsubscribe}">Unsubscribe</a>

```

[Previous page](https://forum.mautic.org/t/variable-in-href-in-an-email-button/27907.md?page=1)
