Skip to content

Commit 817f341

Browse files
committed
fix double redirect on firefox
1 parent 3ce9783 commit 817f341

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Resources/public/js/ajax.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ function handleJson(json, update, updateStrategy, effect) {
223223
}
224224
// redirect is an url
225225
if (json.hasOwnProperty("redirect")) {
226+
if (window.location == json.redirect) {
227+
location.reload(true);
228+
}
226229
window.location = json.redirect;
227-
location.reload();
228230
}
229231
}
230232

0 commit comments

Comments
 (0)