diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index 49c23437d..1ec7c82be 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -413,7 +413,8 @@ event.preventDefault(); // This is an anchor only - if (href.substr(0, 1) === '#' && href.substr(1, 1) !== '!') { + if (href.substr(0, 1) === '#' && href.length > 1 + && href.substr(1, 1) !== '!') { self.handleAnchor(href); return; }