You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that pushState is called before the request is sent or a response is received, which means user’s location bar updates to the new URL prior to receiving a response.
Normal browser behavior for non-ajax navigation does not update the location bar until a response comes back. So, from a user’s perspective, the URL change is premature. I’d recommend simply removing line 339’s call to pushState, and simply let replaceState be called on success.
Perhaps there is a reason for this behavior that I am unaware of, in which case please correct.