# Can we redirect a user back to a parameterized URL when login with Auth0?

**URL:** <https://community.auth0.com/t/can-we-redirect-a-user-back-to-a-parameterized-url-when-login-with-auth0/62119>\
**Category:** Get Help\
**Created:** [May 3, 2021, 11:30am UTC](https://community.auth0.com/t/can-we-redirect-a-user-back-to-a-parameterized-url-when-login-with-auth0/62119 "2021-05-03T11:30:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sean3/32/25328_2.png) [@sean3](https://community.auth0.com/u/sean3)\
**Post date:** [May 3, 2021, 11:30am UTC](https://community.auth0.com/t/can-we-redirect-a-user-back-to-a-parameterized-url-when-login-with-auth0/62119/1 "2021-05-03T11:30:10Z")

</div>

I have a webapp [www.example.com](http://www.example.com). And our customers login through Auth0 (Auth0 is our AuthN system).

We wanted to redirect the users to their nickname path after they successfully login, i.e, [www.example.com/{nickname}](http://www.example.com/%7Bnickname%7D)

For example, if my nickname is `chen`, then I should be redirected back to [www.example.com/chen](http://www.example.com/chen)

How should we configure the “allowed callback URL” in the Auth0 account?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 3, 2021, 3:05pm UTC](https://community.auth0.com/t/can-we-redirect-a-user-back-to-a-parameterized-url-when-login-with-auth0/62119/3 "2021-05-03T15:05:28Z")

</div>

Hi @sean3,

Welcome to the Community!

In order to handle the callback dynamically, it’s advised to set up a single callback URL that handles the redirect for users.

Here is an FAQ about setting up dynamic callbacks:  
[https://community.auth0.com/t/how-do-i-set-up-a-dynamic-allowed-callback-url/60268](https://community.auth0.com/t/how-do-i-set-up-a-dynamic-allowed-callback-url/60268)

In the FAQ above, the app would know before the user logs in where they should be redirected to after login. Since the app would probably not have the `nickname` before the login, I’d have to do some research to see how this has been handled in the past. To help with that, can you provide more info about your app such as which SDK you’re using? Thanks!

---

<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:** [May 18, 2021, 3:05pm UTC](https://community.auth0.com/t/can-we-redirect-a-user-back-to-a-parameterized-url-when-login-with-auth0/62119/4 "2021-05-18T15:05:39Z")

</div>

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