Merge pull request #34004 from backstage/bui-fix-external-links

fix(ui): preserve external hrefs in BUI link components
This commit is contained in:
Fredrik Adelöw
2026-04-22 14:28:36 +02:00
committed by GitHub
6 changed files with 81 additions and 11 deletions
@@ -0,0 +1,7 @@
---
'@backstage/ui': patch
---
Fixed external URLs in BUI link components being rewritten as in-app paths when the app is served under a non-root base path. Absolute URLs (`http://`, `https://`, `//`, `mailto:`, `tel:`) are now passed through unchanged. Internal `href` values are resolved against the current `basename` exactly once, which also fixes a latent issue where internal link clicks under a non-root base path could navigate to a URL with the `basename` prefix doubled.
**Affected components:** ButtonLink, Card, Link, Menu, Tab, Table, Tag