External Link Icons
Automatically marks outbound links with an accessible external-link icon, with smart content scoping and exclusions.
What it does
Site-wide, it detects links that leave the organization’s own domains and appends a small external-link icon, so readers know a link opens an outside site — automatically, with no editor effort.
Why it exists
Signaling outbound links is a common accessibility and usability expectation — and often a compliance requirement — for large public-sector sites. Doing it by hand across hundreds of pages and dozens of editors is unreliable; enforcing it in code guarantees the treatment is consistent everywhere.
Engineering considerations
A lightweight script scopes itself to content regions such as the main and post content and skips chrome like headers, footers, and menus, treating same-network government domains as internal rather than external. The injected SVG is aria-hidden so it never pollutes a link’s accessible name, duplicate marks are guarded against, and when a link wraps a whole card the icon is placed on the card’s heading instead of the bounding link.