Edit this page

API History
module up.history

The up.history module helps you work with the browser history.


Guides

Features

Essentials

All features

HTML
[up-back] stable

Changes the link's destination so it points to the previous URL.

JS
up.history.config stable

Configures behavior when the user goes back or forward in browser history.

JS
up.history.isLocation(url, [options]) experimental

Returns whether the given URL matches the current browser location.

JS
up.history.location experimental

Returns a normalized URL for the current browser location.

JS
up.history.previousLocation experimental

Returns a normalized URL for the previous history entry.

JS
up.history.push(url) experimental

Adds a new history entry and updates the browser's address bar with the given URL.

JS
up.history.url() deprecated

Returns a normalized URL for the current history entry.

JS
up:location:changed stable

This event is emitted after the browser's address bar was updated with a new URL.

JS
up:location:restore stable

This event is emitted when the user is restoring a previous history entry, usually by pressing the back button.

HTML
[up-meta] stable

Configures whether this <head> element is updated during history changes.