Skip to content

Triggering an anchor within the Accordion block does not work #72685

@hagege

Description

@hagege

Description

If I define an anchor within an accordion block, e.g., for a heading, this anchor will not be opened via a link on another page (e.g., the start page) on the subpage within the accordion block. Only the accordion block on the page will be accessed.

Step-by-step reproduction instructions

  1. Create a new accordion block
  2. Create within the accordion block a heading with an anchor
  3. Create a link on the start page to the anchor on the page with the accordion block

Screenshots, screen recording, code snippet

anchor-within-accordion-block.mp4

Environment info

WordPress 6.9-beta1-61059 running Twenty Twenty-Five theme.
PHP 8.2.23

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] AccordionAffects the Accordion Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    Status

    📥 Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions