File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
47
47
if ( url . charAt ( 0 ) == '^' ) {
48
48
url = state . url = $urlMatcherFactory . compile ( url . substring ( 1 ) ) ;
49
49
} else {
50
- url = state . url = parent . navigable . url . concat ( url ) ;
50
+ url = state . url = ( parent . navigable || root ) . url . concat ( url ) ;
51
51
}
52
52
} else if ( isObject ( url ) &&
53
53
isFunction ( url . exec ) && isFunction ( url . format ) && isFunction ( url . concat ) ) {
@@ -57,7 +57,7 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
57
57
}
58
58
59
59
// Keep track of the closest ancestor state that has a URL (i.e. is navigable)
60
- state . navigable = state . url ? state : parent ? parent . navigable : null ;
60
+ state . navigable = url ? state : parent ? parent . navigable : null ;
61
61
62
62
// Derive parameters for this state and ensure they're a super-set of parent's parameters
63
63
var params = state . params ;
You can’t perform that action at this time.
0 commit comments