ParsedLocation

external interface ParsedLocation(source)

Properties

Link copied to clipboard
abstract val hash: String

The hash of the location, including the leading hash character.

Link copied to clipboard
abstract val href: String

The full path of the location, including pathname, search, and hash. Does not include the origin. Is the equivalent of calling url.replace(url.origin, '')

Link copied to clipboard

The masked location of the location.

Link copied to clipboard
abstract val pathname: String

The pathname of the location, including the leading slash.

Link copied to clipboard
abstract val search: Search

The parsed search parameters of the location in object form.

Link copied to clipboard
abstract val searchStr: String

The search string of the location, including the leading question mark.

Link copied to clipboard

The in-memory state of the location as it may exist in the browser's history.

Link copied to clipboard
abstract val unmaskOnReload: Boolean?

Whether to unmask the location on reload.