loader.js: Allow to use a separate target for redirections
This commit is contained in:
parent
0e5e046ae5
commit
c0cac6fe3c
|
@ -279,6 +279,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
req.$target = $target;
|
req.$target = $target;
|
||||||
|
req.$redirectTarget = $target;
|
||||||
req.url = url;
|
req.url = url;
|
||||||
req.done(this.onResponse);
|
req.done(this.onResponse);
|
||||||
req.fail(this.onFailure);
|
req.fail(this.onFailure);
|
||||||
|
@ -464,7 +465,7 @@
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.redirectToUrl(redirect, req.$target, req);
|
this.redirectToUrl(redirect, req.$redirectTarget, req);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue