aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/browser.js')
-rw-r--r--src/ng/browser.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ng/browser.js b/src/ng/browser.js
index 5e52b828..68e8ba93 100644
--- a/src/ng/browser.js
+++ b/src/ng/browser.js
@@ -148,8 +148,9 @@ function Browser(window, document, $log, $sniffer) {
* @param {boolean=} replace Should new url replace current history record ?
*/
self.url = function(url, replace) {
- // Android Browser BFCache causes location reference to become stale.
+ // Android Browser BFCache causes location, history reference to become stale.
if (location !== window.location) location = window.location;
+ if (history !== window.history) history = window.history;
// setter
if (url) {