mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix redirects needs to be done in sync.
Thanks to nebulade and xet7 ! Fixes #4514
This commit is contained in:
parent
f4fe33fb05
commit
3ed1fc3e6b
1 changed files with 5 additions and 1 deletions
|
|
@ -93,9 +93,13 @@ Triggers.runTriggers = function(triggers, context, redirectFn, after) {
|
||||||
throw new Error("already redirected");
|
throw new Error("already redirected");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// Commenting out, so that redirects work when not in sync.
|
||||||
|
// https://github.com/wekan/wekan/issues/4514
|
||||||
if(!inCurrentLoop) {
|
if(!inCurrentLoop) {
|
||||||
throw new Error("redirect needs to be done in sync");
|
throw new Error("redirect needs to be done in sync");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if(!url) {
|
if(!url) {
|
||||||
throw new Error("trigger redirect requires an URL");
|
throw new Error("trigger redirect requires an URL");
|
||||||
|
|
@ -109,4 +113,4 @@ Triggers.runTriggers = function(triggers, context, redirectFn, after) {
|
||||||
function doStop() {
|
function doStop() {
|
||||||
abort = true;
|
abort = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue