diff --git a/public/js/icinga/utils.js b/public/js/icinga/utils.js index 615e3ab0f..07250c6b6 100644 --- a/public/js/icinga/utils.js +++ b/public/js/icinga/utils.js @@ -219,7 +219,7 @@ * @returns {string} */ addUrlFlag: function (url, flag) { - var pos = url.lastIndexOf('#'); + var pos = url.search(/#(?!!)/); if (url.indexOf('?') !== -1) { flag = '&' + flag;