aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/browser.js
diff options
context:
space:
mode:
authorkimwz2013-12-16 08:08:00 +0000
committerIgor Minar2013-12-30 14:58:04 -0800
commitbddd46c8ecf49cfe6c999cd6b4a69b7d7e1f9a33 (patch)
tree48b8e128aa74b4be2c822fd6954038681f4ed4a2 /src/ng/browser.js
parent80e7a4558490f7ffd33d142844b9153a5ed00e86 (diff)
downloadangular.js-bddd46c8ecf49cfe6c999cd6b4a69b7d7e1f9a33.tar.bz2
fix($location): re-assign history after BFCache back on Android browser
Closes #5425
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) {