You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Save on closing web editor with back button #519
My usual workflow when editing a recipe from cook server is to make my edits and click the Back button (element of the page, not the browser back button) to go back to the recipe screen. Sometimes I click too fast and my latest changes aren't saved. Would it be possible to immediately save when pressing the Back button before leaving the page please?
changed the title [-]Feature request: Save on closing editor with back button[/-][+]Feature request: Save on closing web editor with back button[/+]on Sep 21, 2026
Interesting proposition. But I don’t think that would be an expected outcome for most people. Back button does not immediately means "save my changes" for anyone. It could as well mean "oops, did not mean to save that, let’s go back to the original recipe".
So maybe what might be a good alternative is to catch any user action that would make them leave the page while the recipe has actually received some unsaved edits. Then a modal window could warn that there are some unsaved changes and propose to "save" or "dismiss changes".
Activity
[-]Feature request: Save on closing editor with back button[/-][+]Feature request: Save on closing web editor with back button[/+]xuv commentedon Sep 25, 2026
Interesting proposition. But I don’t think that would be an expected outcome for most people. Back button does not immediately means "save my changes" for anyone. It could as well mean "oops, did not mean to save that, let’s go back to the original recipe".
So maybe what might be a good alternative is to catch any user action that would make them leave the page while the recipe has actually received some unsaved edits. Then a modal window could warn that there are some unsaved changes and propose to "save" or "dismiss changes".
TheEdda commentedon Sep 25, 2026
Yeah, confirmation prompt also makes sense. It avoids the silent loss of new input, which is what I keep doing 😅
feat(web): ask before leaving a page with unsaved changes (cooklang#674)