Skip to main content

What it flags

An anchor has a click handler and a missing, empty or no-op destination. An anchor with href="#" is reported only when it also declares role="button"; href="#" alone is left alone. An anchor with download or a router directive that renders its destination stays quiet: Angular routerLink, UI-Router uiSref and ui-sref, ng-bootstrap ngbNavLink, and a router to.

How to review or fix

Use a button for an action and a link with a meaningful destination for navigation.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: