Skip to content

Commit ae56275

Browse files
authored
Merge pull request #35 from BFoucher/fix/double-reload-firefox
fix double redirect on firefox
2 parents 3ce9783 + 817f341 commit ae56275

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)