up.history.replace(url)
JavaScript function
This feature is experimental. Please share your experiences so we know what to keep or change.
Replaces the current history entry and updates the browser's location bar.
Restoration
The replaced history entry will be owned by Unpoly. When the user navigates back to this history entry, Unpoly will restore the content at that URL.
To replace a history entry that you want to restore yourself, use the browser's
history.replaceState() function
or handle the up:location:changed event.
When history is turned off
This function does nothing when up.history.config.enabled excludes the 'location' aspect.
See Turning off history aspects.
Parameters
url
required
Type: string