Skip to content
easeweb
Search topics

Navigation menus that change order or names between pages

A shop's Journal runs on a separate blog platform with a copy of the shop's header, and the copy has moved Journal to the front and renamed Basket as Cart.

WCAG 2.2
SC 3.2.3AASC 3.2.4AA
Required by
Section 508 · EN 301 549 (EU)
Broken <a href="/basket">Cart</a>
The accessibility problem illustrated: Cognitive:Is Cart the same as my basket?
01

The problem

People who learned where the menu's links are, and what they are called, find them moved or renamed on some pages

02

Try it

Find Basket in the shop’s header, then choose Journal and find it again

Open both pages: do the header’s links keep their order and names? Choose Shop or Fernhill to go back.

Broken Can you fix this?

BrokenThe Journal's own copy of the header

Linen tea towel

Woven in natural linen.

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Build every header and footer from one list of links

Before
BrokenThe Journal's own copy of the header
<!-- Every shop page --><header class="site-header">  <a href="/" class="logo">Fernhill</a>  <nav aria-label="Main">    <a href="/shop">Shop</a>    <a href="/sale">Sale</a>    <a href="/journal">Journal</a>    <a href="/about">About</a>  </nav>  <a href="/account">Account</a>  <a href="/basket">Basket</a></header>
What is wrong2 points

The two headers hold the same links, and each is correct on its own. Together they break both criteria.

  • Links aren't where people learned to find them. Journal has moved to the front of the menu, so it comes before Shop instead of after Sale.
  • People who look for Basket don't find it, and "Click Basket" does nothing for voice control users. On the Journal, the link to the basket is called Cart.
After
FixOne header, from one list of links, on every page
<!-- Every shop page --><header class="site-header">  <a href="/" class="logo">Fernhill</a>  <nav aria-label="Main">    <a href="/shop">Shop</a>    <a href="/sale">Sale</a>    <a href="/journal">Journal</a>    <a href="/about">About</a>  </nav>  <a href="/account">Account</a>  <a href="/basket">Basket</a></header>
How it is fixed3 steps
  1. Put the header links, in order, in two shared lists.
  2. Build the header from those lists on both platforms, so the Journal can't put its own link first or name the basket differently without changing it for every page.
  3. On a Journal page, mark the Journal link as the current page. That can change how it looks and is read but not where it sits; how to mark it is in navigation that marks the current page only by its look.

This fixes the Before and passes 3.2.3 and 3.2.4. If the Journal needs more, such as a row of its categories, it adds them after the shared menu; adding links keeps the order of the ones that are shared.

04

Verify the fix

5 checks, no mouse.

Test with: Screen reader, Keyboard, Zoom

0 of 5 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after any change to the menu, the templates or a platform the site uses.

How screen readers handle aria-current="page"

Limits

This is a starting pattern, not a guarantee for every site. The criteria ask for consistency, not for a good menu: links that are the same everywhere can still be hard to understand. They cover one set of pages, so a site that forms a set of its own, such as a blog on a subdomain, written by other people and with a different navigation, can have its own menu, as long as it keeps it consistent. Changes people make themselves, such as a reader view or a menu they rearrange in their settings, are allowed. Test the whole site, page type by page type, with disabled people and the assistive technology they use.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service