history.js icon indicating copy to clipboard operation
history.js copied to clipboard

History.replaceState possibly adding another state to history

Open ekr3peeK opened this issue 10 years ago • 0 comments

I've encountered a strange bug(?) in History JS. When I use the replaceState method, it seems that it's adding a new state to the already added states.

Basically, what I am doing, is adding and replacing states via javascript. After I add a state and console log History.savedStates I can see a single object being added to the savedStates array, but when I do a replace state, an object is also added to that array. Is this the correct behaviour?

I've described the problem more thoroughly on StackOverflow, am I doing something wrong, or is this really a bug?

http://stackoverflow.com/questions/30198636/cant-figure-out-history-js

ekr3peeK avatar May 13 '15 13:05 ekr3peeK