Fixed iOS Safari interacting weirdly with the History API