loader.js: Really don't push redirects to history

refs #4879
This commit is contained in:
Johannes Meyer 2023-10-26 11:59:56 +02:00
parent e4e23a3abc
commit 4743c5f5c8
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}