# Get login URL in change-password page

**URL:** <https://community.auth0.com/t/get-login-url-in-change-password-page/75256>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [December 21, 2021, 3:47am UTC](https://community.auth0.com/t/get-login-url-in-change-password-page/75256 "2021-12-21T03:47:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rteng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rteng/32/33935_2.png) [@rteng](https://community.auth0.com/u/rteng)\
**Post date:** [December 21, 2021, 3:47am UTC](https://community.auth0.com/t/get-login-url-in-change-password-page/75256/1 "2021-12-21T03:47:48Z")

</div>

In change-password page, I’d like to have a “back to login” button which redirects user back to login page. But it seems I can’t get it using “{{redirect\_url}}” or “{{result\_url}}”.

Is there a way for the HTML to get the URL?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 21, 2021, 8:24pm UTC](https://community.auth0.com/t/get-login-url-in-change-password-page/75256/3 "2021-12-21T20:24:08Z")

</div>

Hi @rteng,

Welcome to the Auth0 Community!

Unfortunately, there isn’t a way to include a back button to redirect your users back to the login page while they have not set a new password.

You can, however, redirect your users back to your login page on a successful password reset. To do so, you will need to go to your Auth0 _Dashboard \> Branding \> Email Templates_ \> select the _Change Password_ template. And add your login URL to the _Redirect to_ field, and it should work.

Your login URL should look something like the following:

```auto
https://YOUR_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://YOUR_APP/callback&
    scope=SCOPE&
    audience=API_AUDIENCE&
    state=STATE

```

After doing so, the password reset will redirect your users to the login page after successfully setting a new password.

I hope this answers your question!

Please let me know how this works for you.

Thank you.

---

<div class="post-metadata">

**Author:** ![rteng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rteng/32/33935_2.png) [@rteng](https://community.auth0.com/u/rteng)\
**Post date:** [December 21, 2021, 10:21pm UTC](https://community.auth0.com/t/get-login-url-in-change-password-page/75256/4 "2021-12-21T22:21:40Z")

</div>

Hi @rueben.tiow

Thanks for your answer. The successful password reset has been working well.

It seems I’ll have to get the login URL with other solutions.

---

<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:** [January 5, 2022, 10:22pm UTC](https://community.auth0.com/t/get-login-url-in-change-password-page/75256/5 "2022-01-05T22:22:17Z")

</div>

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