# Redirect user back to app after successful password change

**URL:** <https://community.auth0.com/t/redirect-user-back-to-app-after-successful-password-change/77889>\
**Category:** Get Help\
**Tags:** password-reset, auth0\
**Created:** [February 8, 2022, 3:39pm UTC](https://community.auth0.com/t/redirect-user-back-to-app-after-successful-password-change/77889 "2022-02-08T15:39:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kav.khalsa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kav.khalsa/32/12789_2.png) [@kav.khalsa](https://community.auth0.com/u/kav.khalsa)\
**Post date:** [February 8, 2022, 3:39pm UTC](https://community.auth0.com/t/redirect-user-back-to-app-after-successful-password-change/77889/1 "2022-02-08T15:39:09Z")

</div>

I would like to do something like this, but the api.redirect is undefined in the password-change flow. Could this please be added?

```auto
exports.onExecutePostChangePassword = async (event, api) => {
api.redirect.sendUserTo(event.request.hostname);
 }

```

---

<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:** [February 22, 2022, 11:27pm UTC](https://community.auth0.com/t/redirect-user-back-to-app-after-successful-password-change/77889/3 "2022-02-22T23:27:39Z")

</div>

Hi @kav.khalsa,

Welcome back to the Auth0 Community!

Can you please add a [Feature Request](https://community.auth0.com/c/feedback/95) for this?

Thanks!

---

<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 9, 2022, 11:28pm UTC](https://community.auth0.com/t/redirect-user-back-to-app-after-successful-password-change/77889/4 "2022-03-09T23:28:07Z")

</div>

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