Editing page slug while 'Show Template' is active causes content blocks to disappear from List View (original) (raw)
Description
On block themes when "Show template" enabled in the editor, changing a page's URL slug causes the Content block to disappear from List View. After this, the page content appears gone/uneditable.
show_template_edit_slug.mov
Notes:
Issue reproduces on multiple block themes themes including Twenty Twenty-Five.
Step-by-step reproduction instructions
- Edit any page
- Enable "Show template" in the editor
- Add content to the page
- Change the page's URL slug in the sidebar
- Content block disappears from List View and content can no longer be edited
Screenshots, screen recording, code snippet
No response
Environment info
WP 6.9.
With and without GB 22.4
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.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure