diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index c82f9411e..c9fcece15 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -1058,15 +1058,20 @@ errorThrown + ':', $(req.responseText).text().replace(/\s+/g, ' ').slice(0, 100) ); - this.renderContentToContainer( - req.responseText, - req.$target, - req.action, - req.autorefresh, - undefined, - req.autosubmit, - req.scripted - ); + + if (req.status === 401) { + window.location.reload(); + } else { + this.renderContentToContainer( + req.responseText, + req.$target, + req.action, + req.autorefresh, + undefined, + req.autosubmit, + req.scripted + ); + } } else { if (errorThrown === 'abort') { this.icinga.logger.debug(