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
An error page is shown if the user reloads the page after an autosave has occurred for a published post.
To Reproduce
Navigate to Posts > Add New
Enter a title and/or content
Publish the post
Change the title or content
Wait for autosave to occur
From what I can tell, there is no UI indication. It takes place after 10 seconds. You can watch your developer tools Network tab for the /autosavesPOST request
Refresh the page
Accept the prompt
Expected behavior
I'm presented with the editor. Presumably in the state of the last publish, with a prompt for a newer autosave existing.
Suspected cause
Probably because the autosave is saved as a separate post entity, with its own ID, and since it's different and the post is published, we replace the browser's current URL with that of the autosave post ID, which isn't valid to be edited directly (only its parent).
Describe the bug
An error page is shown if the user reloads the page after an autosave has occurred for a published post.
To Reproduce
/autosaves
POST
requestExpected behavior
I'm presented with the editor. Presumably in the state of the last publish, with a prompt for a newer autosave existing.
Suspected cause
Probably because the autosave is saved as a separate post entity, with its own ID, and since it's different and the post is published, we replace the browser's current URL with that of the autosave post ID, which isn't valid to be edited directly (only its parent).
gutenberg/editor/store/effects.js
Lines 215 to 221 in 26ebf42
cc @adamsilverstein
The text was updated successfully, but these errors were encountered: