Fix browser back/forward navigation via history.pushState