# Issues with React Router and LoginwithRedirect

**URL:** <https://community.auth0.com/t/issues-with-react-router-and-loginwithredirect/150913>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [November 3, 2024, 7:13pm UTC](https://community.auth0.com/t/issues-with-react-router-and-loginwithredirect/150913 "2024-11-03T19:13:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [November 8, 2024, 7:50pm UTC](https://community.auth0.com/t/issues-with-react-router-and-loginwithredirect/150913/3 "2024-11-08T19:50:15Z")

</div>

Hi @solomonsokoya718!

Can you confirm that both the `window.location.origin` and `${window.location.origin}/beneficiary-application-page-1` are listed in the Allowed Callback URLs of the tenant?

Is the `${window.location.origin}/beneficiary-application-page-1` a protected route? It’s difficult to tell from the code sample. Does that route call `loginWithRedirect()`?

I found this solution that may prove helpful to you if the answers to the last few questions are “yes”: [Angular app non stop refresh after login with code and state query string - #4 by frederik.prijck](https://community.auth0.com/t/angular-app-non-stop-refresh-after-login-with-code-and-state-query-string/106711/4)

Please let me know if I can assist further!

Thanks,

Mary Beth

---

_[View the full topic](https://community.auth0.com/t/issues-with-react-router-and-loginwithredirect/150913)._
