# Confirmation before leaving page with unsaved data

**URL:** <https://community.vikunja.io/t/confirmation-before-leaving-page-with-unsaved-data/3089>\
**Category:** Feature Discussion\
**Created:** [6 December 2024 02:16 UTC](https://community.vikunja.io/t/confirmation-before-leaving-page-with-unsaved-data/3089 "2024-12-06T02:16:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://community.vikunja.io/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://community.vikunja.io/u/mark)\
**Post date:** [6 December 2024 02:16 UTC](https://community.vikunja.io/t/confirmation-before-leaving-page-with-unsaved-data/3089/1 "2024-12-06T02:16:38Z")

</div>

Hi,

I’ve seen a few cases where a long detailed comment was being written on a task and the page was accidentally navigated away from, losing the comment that had not yet been finished/saved. It would be great to have a confirmation before leaving a page when there is unsaved data (possibly via onbeforeunload?).

Thanks for Vikunja, awesome software! 🙂

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [6 December 2024 09:35 UTC](https://community.vikunja.io/t/confirmation-before-leaving-page-with-unsaved-data/3089/2 "2024-12-06T09:35:10Z")

</div>

I think this would make sense, I feel like I’ve heard this request before.

(like this feature request? Use the vote button on the top left to vote for it)

---

<div class="post-metadata">

**Author:** ![livdebus](https://community.vikunja.io/user_avatar/community.vikunja.io/livdebus/32/1886_2.png) [@livdebus](https://community.vikunja.io/u/livdebus)\
**Post date:** [19 January 2025 11:13 UTC](https://community.vikunja.io/t/confirmation-before-leaving-page-with-unsaved-data/3089/3 "2025-01-19T11:13:36Z")

</div>

I really love Vikunja. Keep up the great work.

I strongly support the idea of having a confirmation prompt before leaving a page with unsaved data. This is a crucial feature, particularly for a to-do list application. It can easily happen that a user isn’t aware something hasn’t been saved, especially when they’re in the flow of adding multiple tasks.

For instance, if someone thinks they’ve added a to-do item, but it wasn’t actually saved, it can lead to missed tasks or deadlines. This is especially problematic because the assumption is that the task was recorded, and the user has likely already moved on to thinking about the next thing.

A simple confirmation before navigating away with unsaved changes could prevent these kinds of “errors” and provide peace of mind. Another approach to tackle this issue could be implementing an auto-save feature, as seen in other tools like Microsoft Planner or Trello.
