Location

sealed external interface Location<State> : Path(source)

An entry in a history stack. A location contains information about the URL path, as well as possibly some arbitrary state and a key.

Properties

Link copied to clipboard
abstract var hash: String

A URL fragment identifier, beginning with a #.

Link copied to clipboard
abstract var key: String

A unique string associated with this location. May be used to safely store and retrieve data in some other storage API, like localStorage.

Link copied to clipboard
abstract var pathname: String

A URL pathname, beginning with a /.

Link copied to clipboard
abstract var search: String

A URL search string, beginning with a ?.

Link copied to clipboard
abstract var state: State

A value of arbitrary data associated with this location.