Skip to content

Site Editor: Update old URLs to new path-based URLs #69584

@t-hamano

Description

@t-hamano

What problem does this address?

Ref: #67199

Currently, the site editor references the p GET parameter to determine which page to show. However, there are some URLs that use old parameters (postType, path, etc)

Example:

const patternsUrl = addQueryArgs( 'site-editor.php', {
path: '/patterns',
} );

The URL is http://localhost:8888/wp-admin/site-editor.php?path=/patterns, and is redirected to http://localhost:8888/wp-admin/site-editor.php?p=/pattern.

What is your proposed solution?

It would be good to update these URLs to avoid unnecessary URL redirection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueAn issue that's suitable for someone looking to contribute for the first time[Status] In ProgressTracking issues with work in progress[Type] Code QualityIssues or PRs that relate to code quality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions