loader.js: Allow to use a separate target for redirections

This commit is contained in:
Johannes Meyer 2019-10-24 14:32:11 +02:00 committed by Eric Lippmann
parent 0e5e046ae5
commit c0cac6fe3c
1 changed files with 2 additions and 1 deletions

View File

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