Closed erikringsmuth closed 10 years ago
More specifically, in IE a hashchange doesn't trigger popstate. It looks like most other browsers do, but detecting IE isn't the best option here either.
http://stackoverflow.com/questions/23423637/ie-not-firing-popstate-when-hashchange-happens
In some browsers a
hashchange
also triggers apopstate
. As far as I can tell there isn't a check to see if the browser will fire one or both. The temporary fix is to keep track of the previous state (URL) and not load the route if it's to the same previous state.This needs a better check so that
hashchange
andpopstate
always callrouter.go()
.