diff --git a/src/components/LinkTable.tsx b/src/components/LinkTable.tsx index 2483b56..2019a56 100644 --- a/src/components/LinkTable.tsx +++ b/src/components/LinkTable.tsx @@ -1,4 +1,5 @@ import type { Link } from '../lib/api'; +import { safeLinkTargetUrl } from '../lib/url'; interface LinkTableProps { readonly links: Link[]; @@ -69,6 +70,7 @@ export default function LinkTable({
{links.map((link) => { const selected = selectable && selectedIds?.has(link.id) === true; + const safeUrl = link.linkType === 'redirect' ? safeLinkTargetUrl(link.targetUrl) : null; return (