HTML5-History-API icon indicating copy to clipboard operation
HTML5-History-API copied to clipboard

title of chrome history is not correct

Open woelfchen opened this issue 12 years ago • 1 comments

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 avatar Dec 10 '13 10:12 woelfchen

 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.

woelfchen avatar Dec 11 '13 09:12 woelfchen