# "redirect to" on Expired Change Password email link not working

**URL:** <https://community.auth0.com/t/redirect-to-on-expired-change-password-email-link-not-working/58956>\
**Category:** Get Help\
**Created:** [March 5, 2021, 3:03pm UTC](https://community.auth0.com/t/redirect-to-on-expired-change-password-email-link-not-working/58956 "2021-03-05T15:03:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![slaywell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/slaywell/32/12776_2.png) [@slaywell](https://community.auth0.com/u/slaywell)\
**Post date:** [March 5, 2021, 3:03pm UTC](https://community.auth0.com/t/redirect-to-on-expired-change-password-email-link-not-working/58956/1 "2021-03-05T15:03:54Z")

</div>

Hey all,

I have a requirement to redirect to a custom error page if the Password Reset email link is clicked by a customer and the link is expired.

I have a Redirect To URL set in Branding → Email Templates → Change Password. However, clicking an expired link (i.e when the user has since requested a new link and the old one is expired) does not redirect here - it always goes to the generic Auth0 “Access expired.” page.

According to posts such as this one: [Authentication Error Access expired](https://community.auth0.com/t/authentication-error-access-expired/17434) this should take the value from the Redirect URL?

Thanks  
Matt

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [March 9, 2021, 4:39pm UTC](https://community.auth0.com/t/redirect-to-on-expired-change-password-email-link-not-working/58956/3 "2021-03-09T16:39:01Z")

</div>

Hi @slaywell,

Thanks for joining the Community!

Are you using the Classic Universal Login Experience or the New Universal Login Experience?

Unfortunately, the `Redirect To` behavior described in the topic you linked only applies to the Classic Experience.

For the New Universal Login Experience, you can configure a **Tenant Login URI** which will be linked on the “Access expired” page. You can read more in here: [New Universal Login Experience](https://auth0.com/docs/universal-login/new-experience?_ga=2.94007581.1459667918.1614604126-1595415333.1607347674#password-reset)

---

<div class="post-metadata">

**Author:** ![slaywell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/slaywell/32/12776_2.png) [@slaywell](https://community.auth0.com/u/slaywell)\
**Post date:** [March 10, 2021, 2:15pm UTC](https://community.auth0.com/t/redirect-to-on-expired-change-password-email-link-not-working/58956/4 "2021-03-10T14:15:35Z")

</div>

Hi Stephanie, thanks for getting back to me.

I am using the Classic Experience - but it’s not redirecting to the Redirect To URL when I access an expired link. Our customised login pages are using the Auth0 JS SDK and calling the `changePassword` method.

I’ve been working around this by hosting our own error page and configuring as the “Custom error page URL” in my Tenant Settings but I am curious to know if this is not working as it should be?

Thanks  
Matt

---

<div class="post-metadata">

**Author:** ![slaywell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/slaywell/32/12776_2.png) [@slaywell](https://community.auth0.com/u/slaywell)\
**Post date:** [March 11, 2021, 10:39am UTC](https://community.auth0.com/t/redirect-to-on-expired-change-password-email-link-not-working/58956/5 "2021-03-11T10:39:31Z")

</div>

Hmm after further testing I think this is working differently for the two “expired” scenarios:

1. When the configured expiry time for the link has passed
2. When the user has requested a subsequent email, thus invalidating the first one

What I am seeing is in the first case, the ‘Redirect To’ works fine.  
In the second case, it is ending up at the Tenant Level error page. Is that expected?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [March 12, 2021, 2:49pm UTC](https://community.auth0.com/t/redirect-to-on-expired-change-password-email-link-not-working/58956/6 "2021-03-12T14:49:49Z")

</div>

Hi @slaywell,

I was able to recreate the behavior you have described and asked my team about it. Unfortunately, in the second scenario, the generic error page will be displayed instead of the redirect. You can, however, configure a [custom error page](https://auth0.com/docs/universal-login/custom-error-pages) for your tenant. The page has access to the app’s `client_id` to allow you to add logic based on which app is encountering the error.

**Documentation:**

> **[Customize Error Pages](https://auth0.com/docs/customize/universal-login-pages/custom-error-pages)**
>
> Learn how to create a custom error page for authorization error events.

You can also request an update to this behavior in the Feedback category so that the product team and community can review:

> **[Feedback](https://community.auth0.com/c/feedback/95)**
>
> Submit and vote on product feedback and feature requests.

---

<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:** [March 27, 2021, 2:50pm UTC](https://community.auth0.com/t/redirect-to-on-expired-change-password-email-link-not-working/58956/7 "2021-03-27T14:50:43Z")

</div>

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