Allow modifying history without redirecting to the new url

Default behaviour is unchanged. All tests still pass.