Core Accordion Hash Navigation

Add URL hash navigation to the core Accordion block so items can be linked directly and the hash updates on open/close

Last modified: April 22, 2026

link Extension name

t2/core-accordion-hash-navigation

link Description

Adds URL hash navigation to the core Accordion block. When a user opens an accordion item, the URL hash is updated to match the item's ID, allowing the URL to be shared as a direct link to that specific item. Closing an item removes the hash from the URL.

The core accordion already opens items matching the URL hash on page load; this extension adds the write side — keeping the hash in sync with the currently expanded item.