diff --git a/.changeset/fair-falcons-scream.md b/.changeset/fair-falcons-scream.md new file mode 100644 index 0000000000..5ce4b40265 --- /dev/null +++ b/.changeset/fair-falcons-scream.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-explore': patch +--- + +Enhanced tools card to open external tools in new tab diff --git a/plugins/explore/src/components/ToolCard/ToolCard.tsx b/plugins/explore/src/components/ToolCard/ToolCard.tsx index 2baa0cffda..00c9851865 100644 --- a/plugins/explore/src/components/ToolCard/ToolCard.tsx +++ b/plugins/explore/src/components/ToolCard/ToolCard.tsx @@ -63,6 +63,7 @@ export const ToolCard = ({ card, objectFit }: Props) => { const classes = useStyles(); const { title, description, url, image, lifecycle, tags } = card; + const isExternalUrl = url.startsWith('https://') || url.startsWith('http://'); return ( @@ -97,7 +98,12 @@ export const ToolCard = ({ card, objectFit }: Props) => { )} -