Closed guy-mograbi-at-gigaspaces closed 8 years ago
I am getting this same issue, even with just a single dsr state and an otherwise
.
I was able to alleviate this issue by using the function form of the the otherwise function. Similar to
$urlRouterProvider.otherwise(function($injector, $location) {
$injector.get('$state').go('deploy');
});
Does that work for you?
@joeljeske's suggested workaround resolves the issue for me. Thanks!
yup - works for me too.. thanks.
Hi,
I was trying to give a reasonable default route for my app.. following numerous links, for example : http://stackoverflow.com/questions/16793724/otherwise-on-stateprovider reached a code that looks like this :
the aim was to redirect
/
to statedeploy
and have statedeploy
redirect todeploy.cloud
- this way if the default fordeploy
changes, everything remains consistent.I was surprised to see that when I go to
localhost:9000
(no path) - i see infinite redirects with error prints of infinite digest until it reaches.This does not happen if I remove one of the two or if the
otherwise
points to a state withoutdeepStateRedirect
.I am using angular 1.4.3 and angular-ui-router 0.2.15.