# loginWithRedirect({ screen\_hint: 'signup' }) not working

**URL:** <https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [February 6, 2023, 1:34pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797 "2023-02-06T13:34:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nasko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nasko/32/44379_2.png) [@nasko](https://community.auth0.com/u/nasko)\
**Post date:** [February 6, 2023, 1:34pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/1 "2023-02-06T13:34:16Z")

</div>

Hi! I’m trying to create a button that shows my signup form directly and have scoured the internet on the topic. I’ve found numerous topics and success stories that all show that his should work:

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

```

I’m using the new Universal Login with NO customizations (apart from a few color changes and a logo) and still no luck. I get redirected to the login screen instead as if I’m not providing a parameter at all. Help!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 6, 2023, 6:53pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/3 "2023-02-06T18:53:59Z")

</div>

Hey there @nasko welcome to the community!

Interesting! Are you positive you are using new UL? I have really only seen this occur when classic UL is being used as this param has no effect there.

While I’m not positive which SDK you are using in particular, I’ve just tested this in our [React Sample](https://github.com/auth0-samples/auth0-react-samples/blob/6c23fda5d29dbf40f60530609983dd281218176a/Sample-01/src/components/NavBar.js#L78) and it seems to be working as expected.

If you want to double check you’re using New UL you can do so here:

 ![Screen Shot 2023-02-06 at 10.52.30 AM](https://global.discourse-cdn.com/auth0/original/3X/9/5/950933b44a3d28ec61004b3707873c2792e304f4.png)

Keep us posted!

---

<div class="post-metadata">

**Author:** ![nasko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nasko/32/44379_2.png) [@nasko](https://community.auth0.com/u/nasko)\
**Post date:** [February 6, 2023, 8:20pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/4 "2023-02-06T20:20:39Z")

</div>

I’m using the new experience, yes. I’ve changed it from new to classic, to customized, then back to new like a dozen times while experimenting. I’m also using the React sample.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/f/3f9a88eef90b7baf2d76dfa32d97a8d7ff566dc7.png)

I’ll try and setup a brand new environment, because I’m really lost for ideas already :))

---

<div class="post-metadata">

**Author:** ![nasko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nasko/32/44379_2.png) [@nasko](https://community.auth0.com/u/nasko)\
**Post date:** [February 6, 2023, 8:43pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/5 "2023-02-06T20:43:11Z")

</div>

Nope, no luck with that too. I made sure there are no organizations too. Fresh tenant, fresh app, fresh universal login and fresh react sample. What else should I check?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 6, 2023, 10:16pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/6 "2023-02-06T22:16:48Z")

</div>

Hey @nasko thanks for the follow up, and for digging into it more!

Which browser are you testing in? Does the entire normal sample login flow work?

---

<div class="post-metadata">

**Author:** ![nasko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nasko/32/44379_2.png) [@nasko](https://community.auth0.com/u/nasko)\
**Post date:** [February 6, 2023, 10:33pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/7 "2023-02-06T22:33:10Z")

</div>

I’m using Chrome 109.0.5414.120 64-bit. Tried Edge too. Everything else works perfectly.

Interestingly when I open the network tab in dev tools I see that the /authorize is called without the screen\_hint parameter. I copied the URL and added the parameter in and it then redirected me properly to the signup page. The issue is somewhere between me clicking the sample button and the authorize endpoint.

---

<div class="post-metadata">

**Author:** ![nasko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nasko/32/44379_2.png) [@nasko](https://community.auth0.com/u/nasko)\
**Post date:** [February 6, 2023, 10:34pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/8 "2023-02-06T22:34:05Z")

</div>

Here is my button’s code:

```auto
<Button
   id="qsLoginBtn"
   color="primary"
   className="btn-margin"
   onClick={() => loginWithRedirect({ screen_hint: 'signup' })}
>
   Log in
</Button>

```

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 7, 2023, 1:00am UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/9 "2023-02-07T01:00:39Z")

</div>

Thanks for sharing! OK I think I may have figured this out - Please try the following:

```auto
onClick={() => loginWithRedirect({authorizationParams: {
                      screen_hint: "signup",
                    }})}

```

I had my versions mixed up (using pre v2) which mentions the introduction of `authorizationParams`:

> <https://github.com/auth0/auth0-react/blob/master/MIGRATION_GUIDE.md#introduction-of-authorizationparams>

Let us know if that does the trick!

---

<div class="post-metadata">

**Author:** ![nasko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nasko/32/44379_2.png) [@nasko](https://community.auth0.com/u/nasko)\
**Post date:** [February 7, 2023, 3:04pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/10 "2023-02-07T15:04:50Z")

</div>

Perfect! That did it! Thank you!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 7, 2023, 4:37pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/11 "2023-02-07T16:37:34Z")

</div>

Awesome!! Thanks for confirming here 🚀

---

<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:** [February 21, 2023, 4:38pm UTC](https://community.auth0.com/t/loginwithredirect-screen-hint-signup-not-working/99797/12 "2023-02-21T16:38:05Z")

</div>

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