# Callback URL After Login

**URL:** <https://community.auth0.com/t/callback-url-after-login/106768>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [May 11, 2023, 6:49pm UTC](https://community.auth0.com/t/callback-url-after-login/106768 "2023-05-11T18:49:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [May 12, 2023, 11:58pm UTC](https://community.auth0.com/t/callback-url-after-login/106768/3 "2023-05-12T23:58:50Z")

</div>

Hi @justin.cassidy,

Welcome to the Auth0 Community!

Firstly, for the Callback URL to work, please make sure to:

- Add the URL to the Allowed Callback URLs list in your application settings ([Auth0 Dashboard \> Applications \> Applications \> Your Application \> Allowed Callback URLs](https://manage.auth0.com/#/applications)).
- Make sure the `redirect_uri` query parameter points to a URL that is from the list of Allowed Callback URLs.

> [@justin.cassidy](#):
>
> I also tried passing in the URL I want it to redirect to in the loginWithRedirect options as follows: `onClick={() => loginWithRedirect(openUrl: 'https://parentsite/myReactSPA/'})}` but that doesn’t seem to work either.

The URL should be passed into the `redirect_uri` property inside the [authorizationParams object](https://auth0.github.io/auth0-react/interfaces/AuthorizationParams.html#redirect_uri). See below:

```auto
onClick={() => loginWithRedirect(authorizationParams: { redirect_uri:'https://parentsite/myReactSPA/'})}

```

Could you please give this a try and let me know how this works for you?

Thanks,  
Rueben

---

_[View the full topic](https://community.auth0.com/t/callback-url-after-login/106768)._
