You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a11y/identical-links-same-purpose reports a mega menu that repeats the same link text under different parent sections. Bademode under Damen goes to /damen/bademode/, Bademode under Herren to /herren/bademode/. Each link sits in a submenu labelled by its section (<ul aria-label="Damen">), so its programmatically determined context differs, which WCAG 2.4.9 / 2.4.4 accept. On a live fashion shop this fires on 60 of 60 pages (29–40 link texts per page), since the menu is on every page; we keep the rule disabled.
a11y/identical-links-same-purpose warn: "2 link text(s) lead to different destinations": "bademode" → 2 different URLs, "shirts" → 2 different URLs.
Expected
Links whose programmatic context differs are not grouped as identical: a link inside a list or region with an accessible name (aria-label, aria-labelledby, or a parent list item whose first link names the section) gets that name as context. Equal text with equal context leading to different URLs is still reported. axe treats this rule as "needs review"; a <check>-unconfirmed row would also work if the context cannot be settled.
Version
squirrel v0.0.129
Acceptance Criteria
The repro above reports no identical-links-same-purpose finding for Bademode / Shirts
Two links with the same text, no distinguishing context and different targets on one page are still reported
Context from aria-label, aria-labelledby and a parent <li>'s leading link is covered by tests
I would like to take this. I will make identical-link grouping include the nearest programmatic section context from aria-label, aria-labelledby, or a parent list item’s leading link, while preserving warnings for equal text and equal context that point to different targets. I will cover the mega-menu repro and each accepted context source with focused tests, then update the rule docs and changelog.
Fixed in #1134 (thank you @WilliamK112): identical link text is grouped by its nearest programmatic section context (aria-labelledby, aria-label, or a parent list item's leading link), so a labelled mega-menu no longer warns while repeated text in the same or no context still does. Ships in v0.0.137.
Activity
WilliamK112 commentedon Oct 26, 2026
I would like to take this. I will make identical-link grouping include the nearest programmatic section context from
aria-label,aria-labelledby, or a parent list item’s leading link, while preserving warnings for equal text and equal context that point to different targets. I will cover the mega-menu repro and each accepted context source with focused tests, then update the rule docs and changelog.fix(rules): respect identical-link context squirrelscan#1043
fix(rules): respect identical-link context squirrelscan#1043
fix(rules): respect identical-link context squirrelscan#1043
fix(rules): respect identical-link context squirrelscan#1043
nc9 commentedon Oct 26, 2026
Fixed in #1134 (thank you @WilliamK112): identical link text is grouped by its nearest programmatic section context (aria-labelledby, aria-label, or a parent list item's leading link), so a labelled mega-menu no longer warns while repeated text in the same or no context still does. Ships in v0.0.137.