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.
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.
This function does nothing when up.history.config.enabled excludes the 'location' aspect.
See Turning off history aspects.
Tip Your coding agent can search these docs locally with the Unpoly agent skill