Skip to content

Commit

Permalink
fix($location): re-assign history after BFCache back on Android browser
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwz authored and jamesdaily committed Jan 27, 2014
1 parent 50e384f commit adad337
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ng/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit adad337

Please sign in to comment.