Skip to content

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

Closed

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

Activity

  1. added
    [Package] Commands
    [Type] Bug
    on Jun 27, 2023
  2. added
    Needs Testing
    on Jun 27, 2023
  3. t-hamano commented on Jun 27, 2023

    @t-hamano
    Contributor

    Hi @franzaurus,

    Thanks for the report.

    I believe this issue was resolved in #51837 and would like to close this issue. If I have missed any points, please feel free to comment.

  4. removed
    Needs Testing
    on Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Package] Commands[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions