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.enabledturns off the'location'aspect, the address bar keeps its URL while layers render other locations. To get the location of the current layer, useup.layer.location.
Tip Your coding agent can search these docs locally with the Unpoly agent skill