Skip to content

Command center: Open library mapped to a non-existent path #51960

@franzaurus

Description

@franzaurus

Description

Opening Library from the Command center leads to a non-existent page /wp-admin/site-editor.php?path=%2Fwp_template_part. While it should be mapped to /wp-admin/site-editor.php?path=%2Flibrary.

This bug is only triggered via the Command center. While manually accessing the Library from the left sidebar menu leads to a correct path.

Step-by-step reproduction instructions

  1. Press Ctrl-K (win) or Command-K (mac) to invoke the Command center
  2. Type or choose Open Library
  3. Observe the left sidebar menu disappears
  4. Observe the path in the address bar leads to /wp-admin/site-editor.php?path=%2Fwp_template_part which is non-exist.

Screenshots, screen recording, code snippet

Wrong library page path

wrong-open-library-GB1610rc1

Right library page path

right-open-library-GB1610rc1

Environment info

Local WP, WP 6.2.2, Gutenberg 16.1.0 RC-1, Windows 11, Chrome 114.0.5735.134.

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

    [Package] Commands/packages/commands[Type] BugAn existing feature does not function as intended

    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