## interceptLinks · function

Intercept clicks and Enter key presses on links (`<a>` tags) and use Aberdeen routing
instead of browser navigation for local paths (paths without a protocol or host).

This allows you to use regular HTML anchor tags for navigation without needing to
manually attach click handlers to each link.

Links with a `target` or `download` attribute, external/protocol links,
hash-only links, modified clicks (ctrl/cmd/shift/alt, non-primary buttons)
and events something else already handled (`defaultPrevented`) are left to
the browser.

**Signature:** `(handler?: LinkHandler) => void`

**Parameters:**

- `handler?: LinkHandler` - Optional `LinkHandler`, for routing systems that need to
decide *how* to navigate (say, based on where in the DOM the link sits)
without re-implementing link interception. It's consulted for every link
that passed the exclusions above; see `LinkHandler` for its protocol.

**Examples:**

```js
// In your root component:
route.interceptLinks();

// Now you can use regular anchor tags:
A('a text=About href=/corporate/about');
```
