diff --git a/Resources/public/js/ajax.js b/Resources/public/js/ajax.js index ed01ba9..78b5ed0 100644 --- a/Resources/public/js/ajax.js +++ b/Resources/public/js/ajax.js @@ -227,10 +227,12 @@ function handleJson(json, update, updateStrategy, effect) { } // redirect is an url if (json.hasOwnProperty("redirect")) { + // On firefox location.reload and window.location do not stop the execution of the script. We need to run only 1 command to avoid a double redirection if (window.location == json.redirect) { location.reload(true); + } else { + window.location = json.redirect; } - window.location = json.redirect; } }