Skip to content

History entry state

Attach state to a history entry, read it back - it survives Back/Forward.

Current entry's state

brouter.Location.HistoryState = (null)

Push entries with state

Link with HistoryState

Push a few stamped entries, then walk Back/Forward: each entry restores its own state - the browser stores it on history.state. Serialize JSON for structured payloads.