Edit this page

up.history 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.


Parameters

url
required
string