# double opt-in redirect with params

**URL:** <https://community.hubspot.com/t/double-opt-in-redirect-with-params/17502>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [December 2, 2019, 2:22pm UTC](https://community.hubspot.com/t/double-opt-in-redirect-with-params/17502 "2019-12-02T14:22:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JosephWa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josephwa/32/2679_2.png) [@JosephWa](https://community.hubspot.com/u/JosephWa)\
**Post date:** [December 2, 2019, 2:22pm UTC](https://community.hubspot.com/t/double-opt-in-redirect-with-params/17502/1 "2019-12-02T14:22:27Z")

</div>

Hello,

Not sure if this is the correct channel for this question, please excuse me if it is not.

I want to enable double opt-in and when the user clicks the confirmation link, I want to redirect to my site with his email property in the query string, or some way to identify the user on my site form. the form needs to submit some details to my site taken from Hubspot. So it is not a HubSpot form.

Any idea how to achieve this, or direct me to a better channel for this question?

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [December 3, 2019, 3:29am UTC](https://community.hubspot.com/t/double-opt-in-redirect-with-params/17502/2 "2019-12-03T03:29:41Z")

</div>

Hi @JosephWa,

You can add the email property in the subscription confirmation url by doing something like this:

`<p><a href="{{ subscription_confirmation_url }}" rel=" noopener">{{ subscription_confirmation_url }}?email={{ contact.email }}</a></p> `

Adding the contact email [personalize token](https://knowledge.hubspot.com/cos-general/how-to-use-personalization-with-your-content) as a query string.

---

<div class="post-metadata">

**Author:** ![JosephWa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josephwa/32/2679_2.png) [@JosephWa](https://community.hubspot.com/u/JosephWa)\
**Post date:** [December 3, 2019, 1:53pm UTC](https://community.hubspot.com/t/double-opt-in-redirect-with-params/17502/3 "2019-12-03T13:53:25Z")

</div>

hi,

Thank you for the idea. it actually needs to be in the href attribute and not in the name to work :

`<p><a href="{{ subscription_confirmation_url }}?email={{ contact.email }}" rel=" noopener"> Confirm </a></p> `

I have tested and it is working great.
