ui-router icon indicating copy to clipboard operation
ui-router copied to clipboard

How to navigate the whole page?

Open sunphy opened this issue 11 years ago • 3 comments

In my app most url/state are managed by ui-router except one login. I want the whole page navigated to login.html when ajax request got HTTP 401 response(caused by user session expires). When I use $location.path("login.html"),the login page just loaded in <ui-view/> section. How can I conditionally jump out of the ui-router system? Thanks!

sunphy avatar Aug 16 '15 05:08 sunphy

Have you tried a hard page redirect, $window.location = 'login.html?

eddiemonge avatar Aug 18 '15 19:08 eddiemonge

https://gist.github.com/christopherthielen/b3fc0304b737a4bf8ec9

eddiemonge avatar Aug 18 '15 19:08 eddiemonge

Looks like not the solution,but still,Thanks a lot!

sunphy avatar Aug 19 '15 02:08 sunphy