aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ng/location.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ng/location.js b/src/ng/location.js
index 0a47445f..d193b1ca 100644
--- a/src/ng/location.js
+++ b/src/ng/location.js
@@ -184,6 +184,10 @@ function LocationHashbangUrl(appBase, hashPrefix) {
this.$$compose();
+ if (!this.$$path) {
+ this.$$path = '/';
+ }
+
/*
* In Windows, on an anchor node on documents loaded from
* the filesystem, the browser will return a pathname