Skip to content

Users can leave Block Theme Previews without noticing  #53935

@okmttdhr

Description

@okmttdhr

Description

In the following cases, users can "leave" the Block Theme Previews, which means users cannot activate a previewing theme. See the reproduction instructions below.
This should be addressed to allow the URL query ?wp_theme_previews= to be retained.

Step-by-step reproduction instructions

  1. Go to /wp-admin/themes.php and click the Live Preview button for a Block theme
  2. Click the preview to open the edit canvas -> Click the command center and navigate to another part of the Site Editor, e.g., a header or footer template part.
  3. Observe the URL query ?wp_theme_previews= has gone and the subsequent page transitions occur without the URL query, which means users have no way to activate a theme.
Screen.Recording.2023-08-25.at.14.37.44.mov

Replacing step 2 above with one of the following will also reproduce the bug;

  • On the Patterns menu, click Create pattern
  • On the Patterns menu, click Create template part
Screen Shot 2023-08-25 at 14 31 15
  • On the Patterns menu, click Copy to My patterns
    Image from Gyazo

  • On the Templates menu, click + sign and add a new template
    Image from Gyazo

  • On the Pages menu, click + sign and add a new page
    Image from Gyazo

Screenshots, screen recording, code snippet

No response

Environment info

  • Gutenberg 16.5.0
  • WordPress 6.3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions