diff --git a/src/ng/location.js b/src/ng/location.js index 9bb4d417cfe2..121125da47f1 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -167,6 +167,9 @@ function LocationHashbangUrl(appBase, hashPrefix) { * @private */ this.$$parse = function(url) { + if (!url) { + url = appBase; + } var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url); var withoutHashUrl = withoutBaseUrl.charAt(0) == '#' ? beginsWith(hashPrefix, withoutBaseUrl)