aboutsummaryrefslogtreecommitdiffstats
path: root/src/services.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services.js')
-rw-r--r--src/services.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/services.js b/src/services.js
index e91a8eca..11453338 100644
--- a/src/services.js
+++ b/src/services.js
@@ -44,8 +44,13 @@ angularService("$location", function(browser){
scope.$root.$eval();
});
parse(browser.getUrl());
+ var lastURL;
this.$onEval(PRIORITY_LAST, function(){
- browser.setUrl(toString());
+ var url = toString();
+ if (lastURL != url) {
+ browser.setUrl(url);
+ lastURL = url;
+ }
});
return location;
}, {inject: ['$browser']});