up.history up.history.location
JavaScript property

Returns a normalized URL for the current browser location.

The returned URL is an absolute pathname like "/path" without a hostname or port. It will include a #hash fragment and query string, if present.

Note

If the current layer does not have visible history, the browser's address bar will show the location of an ancestor layer. When up.history.config.enabled turns off the 'location' aspect, the address bar keeps its URL while layers render other locations. To get the location of the current layer, use up.layer.location.


Value

location
Type: string