WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.16k stars 4.05k forks source link

Editing synced patterns does not use browser history #60868

Open ajgagnon opened 3 months ago

ajgagnon commented 3 months ago

Description

Right now, when you click "Edit Original" on block patterns, it does not use browser history. While the back button in the editor UI does work, it is hard to spot and easy to miss. The user's default reaction is to click the back button in the browser.

Step-by-step reproduction instructions

  1. Create a synced pattern.
  2. Click "Edit Original".
  3. Click your browser's back button.

Screenshots, screen recording, code snippet

https://github.com/WordPress/gutenberg/assets/2569725/81d86afa-ea7a-482a-9dca-6240c2d21da9

Environment info

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

talldan commented 3 months ago

Thanks for reporting. It is a known issue. The same problem has existed with the editing of templates for a while now too, and editing patterns works the same way. I don't think it will be a quick fix.

I'm not seeing any issues that talk about a solution for this, but my understanding is that it may be fixed in the future by two different efforts: