aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ng/browser.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ng/browser.js b/src/ng/browser.js
index 0aa59f66..768720e7 100644
--- a/src/ng/browser.js
+++ b/src/ng/browser.js
@@ -148,6 +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.
+ if (location !== window.location) location = window.location;
+
// setter
if (url) {
if (lastBrowserUrl == url) return;