From e45c18c833f16a0137051793c34737512c4ac955 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 15 Jan 2020 07:58:49 +0100 Subject: [PATCH] utils.js: Use a regex to identify the uri fragment --- public/js/icinga/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;