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

# up.history.previousLocation

Returns a normalized URL for the previous history entry.

If no previous history entry is known, returns `undefined`.

---

## Value {#value}

### previousLocation {#previousLocation}

Type: string

