fix(ui): open external Table row hrefs in a new tab

Automatically apply `target="_blank"` and `rel="noopener noreferrer"` on
`Row` when `href` is an external link, so external links in default BUI
Table rows open in a new tab instead of navigating the current page.

`rel` tokens are merged rather than replaced, so consumer-provided tokens
(e.g. `rel="nofollow"`) are preserved while `noopener noreferrer` is
always enforced whenever `target="_blank"` is in effect.

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2026-03-14 10:00:41 +00:00
parent 6f01c33a0e
commit 612c217c1f
2 changed files with 28 additions and 2 deletions
@@ -0,0 +1,7 @@
---
'@backstage/ui': patch
---
Fixed `Table` rows with external `href` values to open in a new tab by automatically applying `target="_blank"` and `rel="noopener noreferrer"`.
**Affected components**: Table