# How to return to the original web page after logging in with Auth0

**URL:** <https://community.auth0.com/t/how-to-return-to-the-original-web-page-after-logging-in-with-auth0/99257>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [January 30, 2023, 8:38am UTC](https://community.auth0.com/t/how-to-return-to-the-original-web-page-after-logging-in-with-auth0/99257 "2023-01-30T08:38:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hisazumi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hisazumi/32/44113_2.png) [@hisazumi](https://community.auth0.com/u/hisazumi)\
**Post date:** [January 30, 2023, 8:38am UTC](https://community.auth0.com/t/how-to-return-to-the-original-web-page-after-logging-in-with-auth0/99257/1 "2023-01-30T08:38:55Z")

</div>

How to return to the original web page after logging in with Auth0

---

<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:** [January 30, 2023, 8:03pm UTC](https://community.auth0.com/t/how-to-return-to-the-original-web-page-after-logging-in-with-auth0/99257/3 "2023-01-30T20:03:50Z")

</div>

Hi @hisazumi,

Welcome to the Auth0 Community!

I recommend specifying your Login page URL as the `redirect_uri` of your `/authorize` request, and please make sure that you have included it under the list of **Allowed Callback URLs** in your Application settings.

Please check out our [Redirect Users](https://auth0.com/docs/authenticate/login/redirect-users-after-login) documentation to learn more.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![hisazumi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hisazumi/32/44113_2.png) [@hisazumi](https://community.auth0.com/u/hisazumi)\
**Post date:** [January 30, 2023, 10:15pm UTC](https://community.auth0.com/t/how-to-return-to-the-original-web-page-after-logging-in-with-auth0/99257/4 "2023-01-30T22:15:35Z")

</div>

Can I use Actions to return to the original page after logging in?

---

<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:** [January 31, 2023, 6:13pm UTC](https://community.auth0.com/t/how-to-return-to-the-original-web-page-after-logging-in-with-auth0/99257/5 "2023-01-31T18:13:49Z")

</div>

Hi @hisazumi,

> [@hisazumi](#):
>
> Can I use Actions to return to the original page after logging in?

Unfortunately, no, using a Post-Login Action will not be the right approach for returning the user to the “original” page after login, because the Action script executes before issuing an access token and sending the user to the Callback URL.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/5/b57ce584f64a3524ff5660fdb794f4bebce44039.png)  
(Ref: [Login Flow](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow))

In other words, the user’s final destination after a successful login is the Callback URL defined on your app.

For example, if your app’s original page is `https://myexampleapp.com`, then you would need to add that URL to your [Application’s Settings](https://manage.auth0.com/#/applications) **Allowed Callback URLs** and make a request like the following:

```auto
https://YOUR_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://myexampleapp.com&
    scope={scope}&
    audience={apiAudience}&
    state={state}

```

The `redirect_ur` needs to point to your original home page URL for the user to return to that page after logging in successfully.

I hope the clarification helps!

Please let me know how this goes for you.

Thanks,  
Rueben

---

<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:** [February 14, 2023, 6:13pm UTC](https://community.auth0.com/t/how-to-return-to-the-original-web-page-after-logging-in-with-auth0/99257/6 "2023-02-14T18:13:57Z")

</div>

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