Meets #2393: No warning when leaving site without saving

Fix tasks:
```
* `#2393` Fix: No warning when leaving site without saving
```