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
If you have edited a template part (so it has an id) and you go to edit that template part from within the post editor, and then go to reload the page, it shows an error message that you do not have permission to edit the post:
2025-10-28.15.14.20.mp4
Step-by-step reproduction instructions
Go to edit an existing post or page
With template preview mode on, double click on the header area and select to edit the template
Click on the header and select Edit to go to the focused view of the template part
Note how in the URL, the id is updated to the ID of the template part
Reload the editor
See the error message
Instead, what would be great is for the user to be dropped back into editing the template part as they were (including with the Back button to get back to where they were). Failing that, being returned to the post you were originally editing might be an acceptable fallback?
Screenshots, screen recording, code snippet
No response
Environment info
Gutenberg trunk
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Please confirm which theme type you used for testing.
Description
If you have edited a template part (so it has an id) and you go to edit that template part from within the post editor, and then go to reload the page, it shows an error message that you do not have permission to edit the post:
2025-10-28.15.14.20.mp4
Step-by-step reproduction instructions
Instead, what would be great is for the user to be dropped back into editing the template part as they were (including with the Back button to get back to where they were). Failing that, being returned to the post you were originally editing might be an acceptable fallback?
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.