Added option to replace previous browser history entry when navigating. Can be useful for some scenarios, e.g. when you don't want the user going back to an "edit" page.