From 6e4191284a4811c73f8c906c3e40a1c698747f14 Mon Sep 17 00:00:00 2001
From: kimwz
Date: Mon, 16 Dec 2013 08:08:00 +0000
Subject: [PATCH] re-assign history after BFCache back
---
src/ng/browser.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ng/browser.js b/src/ng/browser.js
index 5e52b82807a9..68e8ba9383ee 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) {