devote / HTML5-History-API

HTML5 History API expansion for browsers not supporting pushState, replaceState
http://spb-piksel.ru
MIT License
1.02k stars 182 forks source link

Cannot call replaceState from within a popState handler #46

Closed AlexGalays closed 10 years ago

AlexGalays commented 10 years ago

This works just fine on a html5 browser but is not supported when the shim is active.

I believe the bug is located in changeState(), where lastURL ends up getting nulled.