Fix chrome issue with search greedily using history.replaceState, fixes #364