diff --git a/src/ng/location.js b/src/ng/location.js index 664a9ee0b4cb..98dec092dd26 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -682,6 +682,7 @@ function $LocationProvider(){ // relative path - join with current path var stack = $location.path().split("/"), parts = href.split("/"); + if (stack.length === 2 && !stack[1]) stack.length = 1; for (var i=0; i