Thanks for your reply! If I apply this, doesn’t it then navigate first to my dashboard, and then navigate to my login page afterwards? That’s what the checkLogin() does, it either returns true; or it navigates the user to the login page.
I have implemented the $stateChangePart into my code, and it triggers which is nice. However, this scenario happens:
User opens app, default page is /dashboard
/dashboard is for authorized users only, so redirect to /login
However, before animating to the login view, you get to see the /dashboard view for a very short time, you also see the url go to /dashboard then change to /login quite fast.
Is there any way to have it just not go to /dashboard first, but just go to /login immediately?