Navigating to local URL fragment doesn't modify browser history

careful with pushstate there… what you probably want is replacestate.