Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t go back on a page after clicking “Edit original” on a synced pattern #65824

Closed
2 tasks done
eatse21 opened this issue Oct 2, 2024 · 0 comments · Fixed by #65839
Closed
2 tasks done

Can’t go back on a page after clicking “Edit original” on a synced pattern #65824

eatse21 opened this issue Oct 2, 2024 · 0 comments · Fixed by #65839
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@eatse21
Copy link

eatse21 commented Oct 2, 2024

Description

Hi,

I was editing a page containing a synced pattern.
There was a need to edit the pattern, so I clicked on “Edit original”, and then I was stuck on the pattern edit page and couldn’t come back on the initial page.
After struggling a bit to find what I was missing, because hitting the browser back button makes you return on the previous URL (not the initial page), so there must had been a solution to this problem!

And I finally found that it was because I enabled the preference “Top Toolbar (Access all block and document tools in a single place)”, the back button I needed was in fact hidden by this setting when accessing "Edit original"

It’s still possible to go back by first clicking on a block, then click on “Hide block tools”, and finally the back button appears, but it’s a bit counterintuitive…

Also, the back button doesn't reappear when disabling "Top Toolbar", in contrary to a precedent screencast I made on WordPress 6.6.1 (without Gutenberg plugin) : https://app.screencast.com/oBZynUDAoGbV2

Step-by-step reproduction instructions

  1. Create a Synced Pattern
  2. On a page or post, add it somewhere
  3. Enable "Top Toolbar" option
  4. Click on "Edit original" on the synced pattern
  5. You can't go back, except by clicking on a block, and then hide block tools
  6. If you "unclick" the selected block, so the overall pattern is selected, the top toolbar remains empty

Screenshots, screen recording, code snippet

Go.back.-.synced.patterns.mov

Environment info

  • WordPress 6.6.2 | Gutenberg 19.3.0 | Theme: Twentytwentyfour 1.2
  • Browser : Firefox 130.0
  • Desktop with macOS 14.7

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
2 participants