# Simple problem please help! Redirect users after login not working

**URL:** <https://community.auth0.com/t/simple-problem-please-help-redirect-users-after-login-not-working/79057>\
**Category:** Get Help\
**Tags:** new-universal-login, redirect, login, auth0\
**Created:** [March 1, 2022, 10:27am UTC](https://community.auth0.com/t/simple-problem-please-help-redirect-users-after-login-not-working/79057 "2022-03-01T10:27:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nc14](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nc14/32/33226_2.png) [@nc14](https://community.auth0.com/u/nc14)\
**Post date:** [March 1, 2022, 10:27am UTC](https://community.auth0.com/t/simple-problem-please-help-redirect-users-after-login-not-working/79057/1 "2022-03-01T10:27:08Z")

</div>

I’ve followed the tutorial and seen several answers about issues with specific tech stacks/SPA’s etc re redirecting to a page other than the homepage but I can’t find anything on my extremely simple use case (still learning!).

I’ve set up a NodeJS/Express app and am successfully logging in using the universal login form.

But I can’t see where I would add the code to redirect to a ‘/users/’ page. I’ve added /users to my allowed callbacks but I have no idea how to actually send users there once they’re logged in? What code does that and where does it go!?

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [March 1, 2022, 2:13pm UTC](https://community.auth0.com/t/simple-problem-please-help-redirect-users-after-login-not-working/79057/2 "2022-03-01T14:13:20Z")

</div>

Hi @nc14 , welcome to the community!

If you have a lot of different parts of your site that you may need to being the user back to after authenticating, I would recommend having the user come to a central callback URL on your app for each login, which will validate the response and then route the user on to the right page based on either cookies/browser sessions or a custom `state` parameter sent with the `/authorize` request.

Please see the documentation here for some examples on how this could be achieved:

[https://auth0.com/docs/authenticate/login/redirect-users-after-login](https://auth0.com/docs/authenticate/login/redirect-users-after-login)

---

<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:** [March 2, 2022, 3:49pm UTC](https://community.auth0.com/t/simple-problem-please-help-redirect-users-after-login-not-working/79057/3 "2022-03-02T15:49:38Z")

</div>

Thanks Steve for helping on this one!

---

<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 17, 2022, 3:50pm UTC](https://community.auth0.com/t/simple-problem-please-help-redirect-users-after-login-not-working/79057/4 "2022-03-17T15:50:02Z")

</div>

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