---
area: "Changes"
parent: "Changes"
url: "https://unpoly.com/changes/0.37.0"
released: "2017-08-26"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [Changes](https://unpoly.com/changes.md)</nav>

# Version 0.37.0 (Released on August 26, 2017 with [17 commits](https://github.com/unpoly/unpoly/commits/v0.37.0))

## Compatible changes {#compatible-changes}

- Fix a bug where [replacing](https://unpoly.com/api/up.replace.md) the `<body>` element would not trigger [destructor functions](https://unpoly.com/api/up.compiler.md#destructor) in the old `<body>`.
- Fix a bug where [`[up-layer]`](https://unpoly.com/up-layer) attributes or `{ layer }` options were ignored.
- [`[up-target]`](https://unpoly.com/api/up-follow.md#up-target) and [`form[up-target]`](https://unpoly.com/api/up-submit.md#up-target) get a new modifying attribute `[up-fail-layer]`. Use it to set the layer to update if the server sends a non-200 status code. Valid values are `auto`, `page`, `modal` and `popup`.
- JavaScript functions like [`up.replace()`](https://unpoly.com/api/up.replace.md) or [`up.submit()`](https://unpoly.com/api/up.submit.md) now have a `{ failLayer }` option.

