# Redirect callback to same subdomain?

**URL:** <https://community.auth0.com/t/redirect-callback-to-same-subdomain/43170>\
**Category:** Get Help\
**Created:** [May 18, 2020, 12:41am UTC](https://community.auth0.com/t/redirect-callback-to-same-subdomain/43170 "2020-05-18T00:41:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![esperluette](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/esperluette/32/20977_2.png) [@esperluette](https://community.auth0.com/u/esperluette)\
**Post date:** [May 18, 2020, 12:41am UTC](https://community.auth0.com/t/redirect-callback-to-same-subdomain/43170/1 "2020-05-18T00:41:03Z")

</div>

I’ve been using Auth0 on our main site, and now want to enable login from a subdomain.

How do I ensure that someone who logs in from [subdomain.oursite.com](http://subdomain.oursite.com) is redirected to [subdomain.oursite.com](http://subdomain.oursite.com) on successful login?

Right now the subdomain login is redirecting to the main [oursite.com/callback](http://oursite.com/callback) url.

Thanks!

---

<div class="post-metadata">

**Author:** ![rashid779939](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rashid779939/32/27027_2.png) [@rashid779939](https://community.auth0.com/u/rashid779939)\
**Post date:** [May 18, 2020, 8:11am UTC](https://community.auth0.com/t/redirect-callback-to-same-subdomain/43170/2 "2020-05-18T08:11:55Z")

</div>

Hi @esperluette,

You can have multiple callback URL and you can navigate the user to your required URL you want. Simply go to application-\>setting and scroll down to Allowed Callback URLs. Here you can enter as many URL as you want in comma separated fashion.

Let us know if it helps.

---

<div class="post-metadata">

**Author:** ![esperluette](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/esperluette/32/20977_2.png) [@esperluette](https://community.auth0.com/u/esperluette)\
**Post date:** [May 19, 2020, 2:48pm UTC](https://community.auth0.com/t/redirect-callback-to-same-subdomain/43170/3 "2020-05-19T14:48:48Z")

</div>

Thanks! I have entered the callback URL in the allowed list – I’m trying to figure out how to trigger that specific callback URL from login. 🙂

It looks as if I need to do something like this ([Redirect Users](https://auth0.com/docs/users/guides/redirect-users-after-login)) but I haven’t puzzled through it yet, would love pointers to examples!

---

<div class="post-metadata">

**Author:** ![rashid779939](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rashid779939/32/27027_2.png) [@rashid779939](https://community.auth0.com/u/rashid779939)\
**Post date:** [May 19, 2020, 2:51pm UTC](https://community.auth0.com/t/redirect-callback-to-same-subdomain/43170/4 "2020-05-19T14:51:13Z")

</div>

Simply set the specific URL on login URL in callback field. If the login will success the flow will navigate to your mention callback url.

---

<div class="post-metadata">

**Author:** ![esperluette](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/esperluette/32/20977_2.png) [@esperluette](https://community.auth0.com/u/esperluette)\
**Post date:** [May 19, 2020, 3:28pm UTC](https://community.auth0.com/t/redirect-callback-to-same-subdomain/43170/5 "2020-05-19T15:28:31Z")

</div>

aha! okay, this helped – I have it set at the app level, and it looks like I need to figure out how to move the passport strategy down towards the route level. Thank you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 20, 2020, 10:41am UTC](https://community.auth0.com/t/redirect-callback-to-same-subdomain/43170/6 "2020-05-20T10:41:39Z")

</div>

Let us know if you have any other questions!
