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

# up.modal.coveredUrl()

**This feature has been deprecated**. Use `up.layer.parent.location` instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

Returns the location URL of the layer behind the current overlay.

---

## Return value {#return-value}

Type: string

