Edit this page

up.history up.history.config
JavaScript property

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

Value

[config.restoreTargets=[]] Array optional

A list of possible CSS selectors to replace when the user goes back or forward in history.

If more than one target is configured, the first selector matching both the current page and server response will be updated.

If nothing is configured, the <body> element will be replaced.

[config.enabled=true] boolean optional

Defines whether fragment updates will update the browser's current URL.

If set to false Unpoly will never change the browser URL.

This website uses cookies to improve usability and analyze traffic.
I accept or learn more