WarUI

Safe URL and link columns

GRID-A29-F07P0beyond-baselinePlanned

A link column type validates URLs against a protocol allowlist (https, http, mailto, and tel by default) and renders invalid or dangerous URLs as plain text. The same policy covers any template binding to href or src.

Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A website column with valid, relative, javascript:, mixed-case JaVaScRiPt:, whitespace-prefixed, data:, and percent-encoded URLs.

Expected behavior

Allowed URLs render as anchors. Blocked ones render as text with a 'blocked link' indicator, and each blocked URL produces one onUrlBlocked event entry.

Planned API surface

columns[].type='link'urlPolicy.allowedProtocolsurlPolicy.allowRelativeurlPolicy.allowedHostsonUrlBlocked

Acceptance criteria

  • Protocol checks use a standards-compliant URL parser, not a regex prefix match. (pending)
  • Leading whitespace, control characters, and mixed case cannot bypass the policy. (pending)
  • A blocked URL never appears in any href attribute. (pending)
  • Host allowlist matching is exact or uses an explicit wildcard subdomain rule. (pending)