From c0cac6fe3cd5e0da3f1bae9c94aa842b5aa298ba Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 24 Oct 2019 14:32:11 +0200 Subject: [PATCH] loader.js: Allow to use a separate target for redirections --- 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 a5502a5bc..3ab5268cf 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -279,6 +279,7 @@ }); req.$target = $target; + req.$redirectTarget = $target; req.url = url; req.done(this.onResponse); req.fail(this.onFailure); @@ -464,7 +465,7 @@ return true; } - this.redirectToUrl(redirect, req.$target, req); + this.redirectToUrl(redirect, req.$redirectTarget, req); return true; },