From 08260866df4a25e27b239aa1d82b55bea46868eb Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 28 Apr 2014 16:06:03 +0200 Subject: [PATCH] Fix navigating by anchor results in an empty detail view being opened fixes #5871 --- public/js/icinga/history.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/js/icinga/history.js b/public/js/icinga/history.js index 68e858ddb..326be38c7 100644 --- a/public/js/icinga/history.js +++ b/public/js/icinga/history.js @@ -142,8 +142,7 @@ ).historyTriggered = true; } - // && document.location.hash.match(/^#!/) ?? - if (document.location.hash) { + if (document.location.hash && document.location.hash.match(/^#!/)) { parts = document.location.hash.split(/#!/);