Skip to content

Site Health widget: route the body's review link through the host #82065

Closed

Description

@retrofox

Part of the Dashboard Overview. Tracked in #79231. Follows #81740.

What

The Site Health widget body links "Review N items" to the classic site-health.php screen (widgets/site-health/render.tsx), while its Details action already targets the dashboard's Site Health page (#81729) and navigates client-side through the host links capability (#81740).

The body link should target the same page and use the same capability: the first widget body consuming useWidgetHost().

Why

How

  • widgets/site-health/render.tsx: the review link targets the dashboard page href; when useWidgetHost().links recognizes it, mount the host link through the render prop, otherwise keep the plain anchor with the same href.
  • widgets/site-health/package.json: depend on @wordpress/widget-primitives.

Tasks

  • Body link targets the dashboard's Site Health page and mounts the host link when matched
  • Plain anchor with the same href when no host provides links
  • Verify client-side navigation on the dashboard and the full page load elsewhere

Location

  • widgets/site-health/render.tsx
  • widgets/site-health/package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] DashboardWordPress admin dashboard, widget framework, and layout customization[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions