Skip to content

Commit

Permalink
Fix last push url in history
Browse files Browse the repository at this point in the history
Fix issue in history that caused some states to be swallowed by pushUrl, after going back and then trying to update to the previous state.
  • Loading branch information
majentsch committed Jul 29, 2015
1 parent ecdc03a commit 84f35bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/js/icinga/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@
icinga.logger.debug('History state', event.originalEvent.state);
}

self.applyLocationBar();
// keep the last pushed url in sync with history changes
self.lastPushUrl = location.href;

self.applyLocationBar();
},

applyLocationBar: function (onload) {
Expand Down

0 comments on commit 84f35bc

Please sign in to comment.