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
To prevent accidental page refreshes that will lose the user's data and progress, it would be great to have a basic browser alert that confirms if the user does want to refresh before it actually happens.
Reacted by Adam Zieliński, mairamaira, Jos Velasco and Ajit Bohra
Activity
akansjain commentedon Jun 2, 2023
Hey @hlashbrooke ,
Please assign this issue to me.
adamziel commentedon Jun 2, 2023
@akansjain there you go!
[Blueprints] setSiteLanguage fetch translation package URL from WP.org (
Add browser refresh confirmation for temporary sites (fixes WordPress#81
fellyph commentedon Aug 27, 2025
Thanks for sending us a PR @jnealey88, I will review it.
iamsohilvahora commentedon Jan 6, 2026
Hi @hlashbrooke @fellyph ,
Please use below code to Prevents accidental data loss that works for local WordPress Playground (website)
What this does
file path (WordPress Playground – local)
Add this near the top, before React renders:
event.preventDefault();
event.returnValue = '';
});
amannex commentedon Apr 2, 2026
Hi, I’d like to work on this issue. Can you assign it to me?
Prompt before unload when site has unsaved changes
mho22 commentedon Jul 8, 2026
Closing this issue now that the
Playground autosavefeature has landed.