From 84f35bc79af4509c9e1730f21ba0567e60f7e3c5 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Wed, 29 Jul 2015 12:34:49 +0200 Subject: [PATCH] Fix last push url in 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. --- public/js/icinga/history.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/history.js b/public/js/icinga/history.js index a3f45e93d..db83dda87 100644 --- a/public/js/icinga/history.js +++ b/public/js/icinga/history.js @@ -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) {