From 4743c5f5c8499cb3b59f3b2e9fe6bad6e7812653 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 26 Oct 2023 11:59:56 +0200 Subject: [PATCH] loader.js: Really don't push redirects to history refs #4879 --- public/js/icinga/loader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index cb512c03d..c736a48f7 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -637,6 +637,7 @@ var redirectionUrl = icinga.utils.addUrlFlag(url, 'renderLayout'); var r = this.loadUrl(redirectionUrl, $('#layout')); r.historyUrl = url; + r.referrer = referrer; if (parts.length) { r.loadNext = parts; } else if (!! document.location.hash) { @@ -961,7 +962,7 @@ }); } - if (this.processRedirectHeader(req)) { + if ((textStatus === 'abort' && typeof req.referrer !== 'undefined') || this.processRedirectHeader(req)) { return; }