---
name: "up.layer.location"
area: "API"
kind: "JavaScript property"
parent: "up.layer module"
url: "https://unpoly.com/api/up.layer.location"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.layer module](https://unpoly.com/api/up.layer.md)</nav>

# up.layer.location

The location URL of the [current layer](https://unpoly.com/api/up.layer.current.md).

This is a shortcut for `up.layer.current.location`. See [`up.Layer#location`](https://unpoly.com/api/up.Layer.prototype.location.md) for more documentation.

<nav aria-label="Guides">

- [Learn: History in overlays](https://unpoly.com/learn/history-in-overlays.md)

</nav>

---

## Value {#value}

### location {#location}

The layer's current location.

Type: string

