All breadcrumb items except the current page must be links; do not include the current page as a link.
The requirement (from the design system site)
All breadcrumb items except the current page must be links; do not include the current page as a link.
Why it matters to users
A citizen who taps the last breadcrumb expecting to go somewhere just reloads the same page, and a screen reader user hears a link that leads nowhere new. Every other item, though, must be a working link back up the path.
How to fix it
Make every breadcrumb item except the last a link with an href, and show the current page as plain text. gup-breadcrumbs-item keeps an href even when current, so remove it from the last item. Then scan again.
How we measure it
Every item before the last is a[href]; the last item is not a link with an href (plain text or a without href). A gup-breadcrumbs-item with an href is a link even when current is set (see note).
Contradiction with the official component: gup-breadcrumbs-item always renders <a href> even when current=true.
The rule on the design system site