# Auth0 Angular - Removing the state query parameter on Login redirect w/ error

**URL:** <https://community.auth0.com/t/auth0-angular-removing-the-state-query-parameter-on-login-redirect-w-error/121153>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [November 17, 2023, 9:15pm UTC](https://community.auth0.com/t/auth0-angular-removing-the-state-query-parameter-on-login-redirect-w-error/121153 "2023-11-17T21:15:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [November 21, 2023, 8:45am UTC](https://community.auth0.com/t/auth0-angular-removing-the-state-query-parameter-on-login-redirect-w-error/121153/4 "2023-11-21T08:45:28Z")

</div>

Hi @Auth0.user ,

I saw here in the community some confusion around redirecting a user back to other than the root url destination after a successful authentication with auth0/auth0-angular.

If you intend to provide a specific URL to direct the user to after the login flow ends, the LoginWithRedirect method’s options serves it - [AuthService | @auth0/auth0-angular](https://auth0.github.io/auth0-angular/classes/AuthService.html#loginWithRedirect).

```auto
loginWithRedirect({
  appState: { target: '/some-url' }
})

```

Here is another topic’s discussion around it that potentially can help - [Redirect URI issue after successful login with @auth0/auth0-angular](https://community.auth0.com/t/redirect-uri-issue-after-successful-login-with-auth0-auth0-angular/58111).

I hope this will help, but if not, the [repo’s feedback / issues section](https://github.com/auth0/auth0-angular/tree/main#contributing) is open for contribution.

---

_[View the full topic](https://community.auth0.com/t/auth0-angular-removing-the-state-query-parameter-on-login-redirect-w-error/121153)._
