# How to navigate \*directly\* to universal login, after logout?

**URL:** <https://community.auth0.com/t/how-to-navigate-directly-to-universal-login-after-logout/42623>\
**Category:** Get Help\
**Tags:** auth0, universal-login\
**Created:** [May 8, 2020, 10:03am UTC](https://community.auth0.com/t/how-to-navigate-directly-to-universal-login-after-logout/42623 "2020-05-08T10:03:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexab/32/13403_2.png) [@alexab](https://community.auth0.com/u/alexab)\
**Post date:** [May 8, 2020, 10:03am UTC](https://community.auth0.com/t/how-to-navigate-directly-to-universal-login-after-logout/42623/1 "2020-05-08T10:03:14Z")

</div>

I am transforming our Angular SPA from using custom login UI, to using the universal login.

My question is, how do I redirect to the universal login page after signing out?

When I follow the quicks-start guide of Angular and use this:

```auto
this.auth0.logout({
            clientID,
            returnTo: window.location.origin,
        });

```

my application is caught in an infite reload-loop?

**UPDATE**

After having updated my authentication guard, I am not redirected to the universal login page. But only after the application is loaded an extra time. How is it possible to navigate directly to universal login - on user logout?

@dan.woda you are my savior 😅 Can you maybe help me out here? Is it possible with Auth0.js to directly go to the universal login page?

---

<div class="post-metadata">

**Author:** ![rashid779939](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rashid779939/32/27027_2.png) [@rashid779939](https://community.auth0.com/u/rashid779939)\
**Post date:** [May 13, 2020, 8:21am UTC](https://community.auth0.com/t/how-to-navigate-directly-to-universal-login-after-logout/42623/2 "2020-05-13T08:21:07Z")

</div>

Hi alexab,

Go to application - Setting and insert your url where you want user to navigate after logout in _Allowed Logout URLs_ filed.

---

<div class="post-metadata">

**Author:** ![alexab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexab/32/13403_2.png) [@alexab](https://community.auth0.com/u/alexab)\
**Post date:** [May 13, 2020, 11:05am UTC](https://community.auth0.com/t/how-to-navigate-directly-to-universal-login-after-logout/42623/3 "2020-05-13T11:05:03Z")

</div>

I already have that - but can I make auth.js throw the user to my universal login directly?

---

<div class="post-metadata">

**Author:** ![rashid779939](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rashid779939/32/27027_2.png) [@rashid779939](https://community.auth0.com/u/rashid779939)\
**Post date:** [May 13, 2020, 12:48pm UTC](https://community.auth0.com/t/how-to-navigate-directly-to-universal-login-after-logout/42623/4 "2020-05-13T12:48:43Z")

</div>

What do you mean by directly, unless you are not logged out how you can go to login screen. If you explain your requirement in details then may be we can help you.

---

<div class="post-metadata">

**Author:** ![alexab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexab/32/13403_2.png) [@alexab](https://community.auth0.com/u/alexab)\
**Post date:** [May 13, 2020, 12:56pm UTC](https://community.auth0.com/t/how-to-navigate-directly-to-universal-login-after-logout/42623/5 "2020-05-13T12:56:53Z")

</div>

Currently when I logout with auth.js, I have to specify an redirect url. The following happens today:

1. User navigates to route _/abc_
2. User decides to click “logout”, and I call `auth.logout({})`.
3. Auth0 then redirects to my app route _/login_
4. _/login_ then redirects to Auth0 universal login.

How can I skip step 3 - and make the application go directly to Auth0 universal login?

---

<div class="post-metadata">

**Author:** ![rashid779939](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rashid779939/32/27027_2.png) [@rashid779939](https://community.auth0.com/u/rashid779939)\
**Post date:** [May 13, 2020, 1:01pm UTC](https://community.auth0.com/t/how-to-navigate-directly-to-universal-login-after-logout/42623/6 "2020-05-13T13:01:06Z")

</div>

I believe this this the whole process flow in Auth0 which can not be bypass.  
@konrad.sopala Please correct me if i am wrong here.
