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

title of chrome history is not correct #47

Open woelfchen opened 10 years ago

woelfchen commented 10 years ago

If I update document.title before history.pushState, then the google chrome history entry have the title of the page before and not the new title.

I think it is the problem of this code in pushState function: if (lastTitle != null) { document.title = lastTitle; }

woelfchen commented 10 years ago

 I think the problem is not lastTitle. document.title = t; in pushState function must set before pushState will executed. This is a problem of chrome.