Skip to content

Commit a26752e

Browse files
Merge pull request #1966 from johnduprey/dev
CellGenericFormat - Add target="_blank"
2 parents 68e8eae + c593c2d commit a26752e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/tables/CellGenericFormat.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ export const cellGenericFormatter =
4444
return <CBadge color="danger">{CellTip('Failed to retrieve from API')}</CBadge>
4545
}
4646
if (cell.toLowerCase().startsWith('http')) {
47-
return <a href={`${cell}`}>URL</a>
47+
return (
48+
<a href={`${cell}`} target="_blank" rel="noreferrer">
49+
URL
50+
</a>
51+
)
4852
}
4953
return CellTip(cell)
5054
}

0 commit comments

Comments
 (0)