Links with the same text should have the same purpose

Links that share the same accessible name should lead to the same place or do the same job. This is a WCAG level AAA requirement: it lets people trust a link from its text alone.

Rule IDidentical-links-same-purpose
ImpactMinor
Success criterion 2.4.9 Link Purpose (Link Only) · AAA
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2
Readabler fix Needs a change in the website’s code

Example

Before
<h2>Hiking boots</h2>
<a href="/boots/trail-pro">View product</a>
<h2>Rain jackets</h2>
<a href="/jackets/storm-shell">View product</a>

A screen reader's links list shows “View product” twice, with no way to tell them apart.

After
<h2>Hiking boots</h2>
<a href="/boots/trail-pro">View Trail Pro boots</a>
<h2>Rain jackets</h2>
<a href="/jackets/storm-shell">View Storm Shell jacket</a>

The links list shows “View Trail Pro boots” and “View Storm Shell jacket”.

Why it matters

Screen reader users often call up a list of all links on a page and pick one from it, without the surrounding text. Two entries called “View product” that lead to different pages force them to open each one to find out where it goes.

Voice control users say the text of the link they want. With duplicate names, the software has to show numbered labels and ask which one they meant, which slows every action down.

People with cognitive disabilities also benefit when the same words always mean the same destination. Level AAA is rarely required by law, but this fix is cheap and makes the whole site easier to use.

How to fix it

Make the visible text specific. This is the best fix, because it helps everyone:

<a href="/boots/trail-pro">View Trail Pro boots</a>

Keep the short visible text, add hidden context. Append the extra words in a span that is hidden visually but read by screen readers:

<a href="/boots/trail-pro">View product<span class="visually-hidden">: Trail Pro boots</span></a>

The visually-hidden class must clip the text, not use display: none, or screen readers will skip it too.

Use aria-label carefully. If you add aria-label, start it with the visible words, for example aria-label="View product: Trail Pro boots", so voice users can still say what they see.

The links really do the same thing. Two “Cart” links that go to /cart and /cart?ref=header have the same purpose. That is not a failure: mark the result as reviewed.

Checklist

  1. List all links on the page and look for repeated text.
  2. Make repeated link text specific to its destination.
  3. Start any aria-label with the visible link text.
  4. Accept duplicates only when they lead to the same resource.

How the check works

The check groups links (<a> and <area> with href, and role="link") by accessible name, ignoring case, punctuation and emoji. Links with the same name and the same URL pass. When one name points to different URLs, the check cannot know whether those pages serve the same purpose, so it reports them for manual review. You decide whether the destinations are equivalent.

Resources

Updated October 27, 2026