# Problem routing redirect with @auth0/auth0-angular

**URL:** <https://community.auth0.com/t/problem-routing-redirect-with-auth0-auth0-angular/89920>\
**Category:** Get Help\
**Created:** [September 2, 2022, 7:17am UTC](https://community.auth0.com/t/problem-routing-redirect-with-auth0-auth0-angular/89920 "2022-09-02T07:17:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Totodile](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/totodile/32/12714_2.png) [@Totodile](https://community.auth0.com/u/Totodile)\
**Post date:** [September 2, 2022, 7:17am UTC](https://community.auth0.com/t/problem-routing-redirect-with-auth0-auth0-angular/89920/1 "2022-09-02T07:17:44Z")

</div>

Hello everyone.

I’ve a login created with the library @auth0/auth0-angular following the guide : [Auth0 Angular SDK Quickstarts: Login](https://auth0.com/docs/quickstart/spa/angular/01-login)

My login system needs queryParams in the loginWithRedirect method (such as allow\_write and connection) and is working perfectly.  
In the routing module, when I serve my app, I use the AuthGuard in order to make mandatory for the user to log in. The user logs-in and then it redirects to the /home page. User can now navigate and logs out perfectly.

My problem is when I try to write the URL and the user is not logged in , for example, /localhost/\*\* , it redirects to a different login without my queryParams and it cant be filled by the user.

How can I solve it?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 30, 2022, 11:23pm UTC](https://community.auth0.com/t/problem-routing-redirect-with-auth0-auth0-angular/89920/3 "2022-09-30T23:23:08Z")

</div>

Hi @Totodile,

I apologize for the delayed response. Were you able to figure this out?

Otherwise, do you have an example of how you are passing your query parameters, what you are passing, and what you see in your browser?

How are you writing the URL (and what do you mean by that)?

---

<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:** [October 14, 2022, 11:23pm UTC](https://community.auth0.com/t/problem-routing-redirect-with-auth0-auth0-angular/89920/4 "2022-10-14T23:23:43Z")

</div>

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