Redirect too fast for ajax
-
Hello, I am using your plugin to give an achievement to my users when they click on a button.
I noticed that they don’t get the achievement at all because the AJAX request is canceled before executing. I found that you are using
location.href = url;
directly after the ajax call and not waiting for it to succeed.To fix it I would suggest to move the redirect code in the ajax success callback instead of calling it in parallel.
You can reproduce the bug on Windows, Firefox 120.0.1 (and maybe other browsers but I haven’t tested it).
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Redirect too fast for ajax’ is closed to new replies.