Edit this page

up.history up.history.location
JavaScript property

This feature is experimental. Please share your experiences so we know what to keep or change.

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. To get the location of the current layer, use up.layer.location.


Value

location string