javascript - pushState is called twice and it rewrites the previous history entry -
i have click event , every time video clicked new entry pushed history. problem url changes duplicate entry entered in history , rewrites previous entry.
$(document).on('click', '.update', function(event) { //pushstate window.history.pushstate(data, data.title, data.video_name); }); when page loaded works fine when click new video problem occurs. url changes , in history pushed state. why happening?
after new video clicked. url changes , same entry inserted in history. 
if want check go http://beta.kida.al , click 1 of videos below.

Comments
Post a Comment