aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ng/location.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/location.js b/src/ng/location.js
index 7576015c..b5f10293 100644
--- a/src/ng/location.js
+++ b/src/ng/location.js
@@ -525,7 +525,7 @@ function $LocationProvider(){
// update location with href without the prefix
href = absHref.substr(absUrlPrefix.length);
- if (href.charAt(0) == '#') href = href.substr(1);
+ if (href.indexOf('#' + hashPrefix) == 0) href = href.substr(hashPrefix.length + 1);
$location.url(href);
$rootScope.$apply();
event.preventDefault();