Optionally use replaceState instead of pushState in historyiface