# includeEmailInRedirect flag is not working for removing Email from Redirect Link

**URL:** <https://community.auth0.com/t/includeemailinredirect-flag-is-not-working-for-removing-email-from-redirect-link/92424>\
**Category:** Get Help\
**Tags:** password-reset, redirect-rules\
**Created:** [October 14, 2022, 1:46pm UTC](https://community.auth0.com/t/includeemailinredirect-flag-is-not-working-for-removing-email-from-redirect-link/92424 "2022-10-14T13:46:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![afra.n](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/afra.n/32/34059_2.png) [@afra.n](https://community.auth0.com/u/afra.n)\
**Post date:** [October 14, 2022, 1:46pm UTC](https://community.auth0.com/t/includeemailinredirect-flag-is-not-working-for-removing-email-from-redirect-link/92424/1 "2022-10-14T13:46:01Z")

</div>

Hello,  
We need to remove the email being passed in the query parameter when the user submits the password reset form. I’ve followed the instructions in this link:

> [@How to disable "Include Email In Redirect"?](https://community.auth0.com/t/how-to-disable-include-email-in-redirect/43139/1):
>
> [Customize Email Templates](https://auth0.com/docs/email/templates#redirect-to-results-for-the-verification-email-template) says that one of the URL parameters for the Verification Email link is, email if Include Email In Redirect is enabled in the template. By default, email is not included Where is the “Include Email In Redirect” option? I don’t see it on the Verification Email template page: I found that the email was included in the URL, actually. How can I disable this?

However, even though the PATCH request to management API goes through, successfully changing the flag to false, we can still observe the email in the redirect link which looks like:

```auto
http://ourRedirectUrl/?email=user123%40ourdomain.com&success=true&message=You%20can%20now%20login%20to%20the%20application%20with%20the%20new%20password.&invitation=false

```

Our app is failing an important security assessment due to plainly visible email (considered PII) in the URL. As we’ve changed the flag as per the other thread and it’s not working, please suggest other steps.

We’re using classic universal login with custom Password Reset page for reference.

---

<div class="post-metadata">

**Author:** ![afra.n](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/afra.n/32/34059_2.png) [@afra.n](https://community.auth0.com/u/afra.n)\
**Post date:** [October 18, 2022, 1:13pm UTC](https://community.auth0.com/t/includeemailinredirect-flag-is-not-working-for-removing-email-from-redirect-link/92424/2 "2022-10-18T13:13:40Z")

</div>

Sharing the solution that I received from the support team here:  
If you’re using management API’s “Create a password change ticket” endpoint as we are doing, you’ve to set the flag to false in the “Create a password change ticket” call, as it defaults to true, overriding the steps in the first link in my question.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [October 20, 2022, 12:12am UTC](https://community.auth0.com/t/includeemailinredirect-flag-is-not-working-for-removing-email-from-redirect-link/92424/3 "2022-10-20T00:12:01Z")

</div>

Thank you @afra.n for sharing the solution with us! 👍

---

<div class="post-metadata">

**Author:** ![afra.n](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/afra.n/32/34059_2.png) [@afra.n](https://community.auth0.com/u/afra.n)\
**Post date:** [October 20, 2022, 1:16pm UTC](https://community.auth0.com/t/includeemailinredirect-flag-is-not-working-for-removing-email-from-redirect-link/92424/4 "2022-10-20T13:16:02Z")

</div>

thanks to @matt.spence for his help, i’m just relaying here

---

<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:** [November 3, 2022, 1:16pm UTC](https://community.auth0.com/t/includeemailinredirect-flag-is-not-working-for-removing-email-from-redirect-link/92424/5 "2022-11-03T13:16:26Z")

</div>

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