[wp-trac] [WordPress Trac] #62846: Allow direct linking to site health check result

WordPress Trac noreply at wordpress.org
Mon Feb 24 08:52:13 UTC 2025


#62846: Allow direct linking to site health check result
-------------------------------------------------+-------------------------
 Reporter:  sippis                               |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.8
Component:  Site Health                          |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch reporter-feedback needs-   |     Focuses:  ui
  testing has-testing-info has-screenshots       |
-------------------------------------------------+-------------------------
Changes (by vgnavada):

 * keywords:  has-patch reporter-feedback needs-testing has-testing-info =>
     has-patch reporter-feedback needs-testing has-testing-info has-
     screenshots


Comment:

 == Test Report
 === Description
 This report validates whether the indicated patch works as expected.

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/8184

 === Environment
 - WordPress: 6.8-alpha-20250123.235129
 - PHP: 7.4.31-dev
 - Server: PHP.wasm
 - Database: WP_SQLite_Translator (Server: 5.5 / Client: 3.40.1)
 - Browser: Chrome 133.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.0
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Actual Results
 ✅ Each Site Health section has a unique ID, making it possible to
 reference them via URL fragments.

 {{{
 <button id="health-check-section-wp-paths-sizes".......>
 <button id="health-check-section-wp-active-theme"......>
 <button id="health-check-section-wp-plugins-inactive"..>
 }}}

 ✅ The accordion panels are correctly referenced using `aria-controls`,
 ensuring proper structure.

 {{{
 <button id="health-check-section-wp-core" aria-controls="health-check-
 accordion-block-wp-core">
 }}}

 ✅ Clicking a section manually expands it as expected.

 ❌ However, when accessing a section using a direct URL with a hash
 fragment (e.g., `#health-check-section-wp-core`), the section **does not
 expand automatically**.

 ❌ The page loads, but it doesn’t scroll to or expand the relevant
 section.

 ❌ Additionally, `window.location.hash` does not return the expected value
 in the console, which might indicate a script interfering with the URL
 fragment handling.
 [[Image(https://i.ibb.co/0RDyB9nH/image.png)]]

 === Additional Notes
 - The setup for direct linking is in place, but the expected behavior
 isn’t working yet.

 === Supplemental Artifacts
 Add Inline: [[Image(REPLACE_WITH_IMAGE_URL)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62846#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list