Skip to content
This repository has been archived by the owner on Jul 26, 2020. It is now read-only.

ui-router loop forever #67

Closed
Masatoshi opened this issue Apr 18, 2015 · 5 comments
Closed

ui-router loop forever #67

Masatoshi opened this issue Apr 18, 2015 · 5 comments
Labels

Comments

@Masatoshi
Copy link

hi. If api is down, ui-router cause looping between "/login" and "/router".

client/app/modules/users/config/users.auth.js

if (rejection.status === 0) {
        $location.path('/');  // it cause loop forever
        CoreService.toastError('Connection Refused',
          'The connection to the API is refused. Please verify that the API is running!'
        );
}
@beeman
Copy link
Member

beeman commented May 30, 2015

This is a known issue. If you have a PR that fixes it I'm happy to look at and consider merging it.

@beeman beeman added the bug label May 30, 2015
@beeman
Copy link
Member

beeman commented Jul 1, 2015

Should be fixed once #61 get's implemented

@beeman
Copy link
Member

beeman commented Aug 9, 2015

This should be fixed in master via #107. Could you please verify this?

@asgeirbirkis
Copy link
Contributor

Not that I'm the original reporter, but I had been dealing with the same issue. At least for me, with #107 merged, I get directed to an error page when api goes down, and don't get stuck in an infinite loop.

@beeman
Copy link
Member

beeman commented Aug 19, 2015

Thanks for confirming @asgeirbirkis !

@beeman beeman closed this as completed Aug 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants