# How to redirect to a different page in application based on "signup" vs "login"?

**URL:** <https://community.auth0.com/t/how-to-redirect-to-a-different-page-in-application-based-on-signup-vs-login/60260>\
**Category:** Get Help\
**Tags:** login\
**Created:** [March 29, 2021, 4:58pm UTC](https://community.auth0.com/t/how-to-redirect-to-a-different-page-in-application-based-on-signup-vs-login/60260 "2021-03-29T16:58:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor-wei126](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/victor-wei126/32/28140_2.png) [@victor-wei126](https://community.auth0.com/u/victor-wei126)\
**Post date:** [March 29, 2021, 4:58pm UTC](https://community.auth0.com/t/how-to-redirect-to-a-different-page-in-application-based-on-signup-vs-login/60260/1 "2021-03-29T16:58:04Z")

</div>

I am using new universal login experience, and there are two buttons on my form. One is “login” and the other “signup”. Based on which button the user clicks, I would like to redirect to a different URL. How do I implement this?

---

<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:** [March 29, 2021, 6:21pm UTC](https://community.auth0.com/t/how-to-redirect-to-a-different-page-in-application-based-on-signup-vs-login/60260/3 "2021-03-29T18:21:17Z")

</div>

Hi @victor-wei126,

You can redirect to the sign up page by passing `screen_hint` as a query string parameter to the `/authorize` endpoint:

```auto
loginWithRedirect({ screen_hint: 'signup' })

```

[https://community.auth0.com/t/how-do-i-redirect-users-directly-to-the-hosted-signup-page/42520](https://community.auth0.com/t/how-do-i-redirect-users-directly-to-the-hosted-signup-page/42520)

---

<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:** [April 13, 2021, 6:22pm UTC](https://community.auth0.com/t/how-to-redirect-to-a-different-page-in-application-based-on-signup-vs-login/60260/4 "2021-04-13T18:22:16Z")

</div>

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