# Send an email address verification email show wrong redirect url

**URL:** <https://community.auth0.com/t/send-an-email-address-verification-email-show-wrong-redirect-url/60760>\
**Category:** Get Help\
**Tags:** verification-email\
**Created:** [April 8, 2021, 10:32am UTC](https://community.auth0.com/t/send-an-email-address-verification-email-show-wrong-redirect-url/60760 "2021-04-08T10:32:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.hong1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.hong1/32/25448_2.png) [@david.hong1](https://community.auth0.com/u/david.hong1)\
**Post date:** [April 8, 2021, 10:32am UTC](https://community.auth0.com/t/send-an-email-address-verification-email-show-wrong-redirect-url/60760/1 "2021-04-08T10:32:45Z")

</div>

Hi,

I have this redirect url expression below on verification email template and it work when new user sign up.

https://sandbox-{% if application.clientID == ‘xxxx’ %}candidate{% else %}profile{% endif %}.pulsifi.me/email/check-verified?email={{ user.email }}

But,  
When i trigger resend verification email via api below,  
[https://auth0.com/docs/api/management/v2/#!/Jobs/post\_verification\_email](https://auth0.com/docs/api/management/v2/#!/Jobs/post_verification_email)

It does not work and always fall back to else case

Please help.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 9, 2021, 4:37pm UTC](https://community.auth0.com/t/send-an-email-address-verification-email-show-wrong-redirect-url/60760/3 "2021-04-09T16:37:54Z")

</div>

Can you post an example of the management API request you are making?

---

<div class="post-metadata">

**Author:** ![david.hong1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.hong1/32/25448_2.png) [@david.hong1](https://community.auth0.com/u/david.hong1)\
**Post date:** [April 10, 2021, 6:23am UTC](https://community.auth0.com/t/send-an-email-address-verification-email-show-wrong-redirect-url/60760/4 "2021-04-10T06:23:20Z")

</div>

Hi,

After have a look on the existing payload we sent as below:  
{  
“user\_id”: “xxx”,  
}  
i think we did not pass in the client\_id along from the application.

Am i right as long we include client\_id in the payload as below, everything should work as expected.  
{  
“user\_id”: “xxx”,  
“client\_id”: “yyy”  
}

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 12, 2021, 4:05pm UTC](https://community.auth0.com/t/send-an-email-address-verification-email-show-wrong-redirect-url/60760/5 "2021-04-12T16:05:18Z")

</div>

You should send the client ID in the request to the management API. Is that also not working 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:** [April 27, 2021, 9:12pm UTC](https://community.auth0.com/t/send-an-email-address-verification-email-show-wrong-redirect-url/60760/6 "2021-04-27T21:12:32Z")

</div>

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