Skip to content

Align schema page identities with final canonical URLs #47

Description

@chubes4

Problem

Canonical and og:url use the filtered final canonical pipeline, while WebPage and Breadcrumb schema build a separate current URL from $wp->request. Schema IDs therefore omit trailing slashes and ignore route-owner canonical overrides.

Required outcome

Use ec_seo_get_final_canonical_url() as the WebPage and Breadcrumb entity identity base. Canonical, Open Graph URL, WebPage URL/ID, and Breadcrumb ID must agree.

Tests

Cover ordinary archives, scoped location discovery, pagination, /all/, and /location/ virtual routes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions