diff options
| author | kimwz | 2013-12-16 08:08:00 +0000 | 
|---|---|---|
| committer | Igor Minar | 2013-12-30 14:58:04 -0800 | 
| commit | bddd46c8ecf49cfe6c999cd6b4a69b7d7e1f9a33 (patch) | |
| tree | 48b8e128aa74b4be2c822fd6954038681f4ed4a2 | |
| parent | 80e7a4558490f7ffd33d142844b9153a5ed00e86 (diff) | |
| download | angular.js-bddd46c8ecf49cfe6c999cd6b4a69b7d7e1f9a33.tar.bz2 | |
fix($location): re-assign history after BFCache back on Android browser
Closes #5425
| -rw-r--r-- | src/ng/browser.js | 3 | 
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) { | 
