diff --git a/.changeset/plenty-feet-pay.md b/.changeset/plenty-feet-pay.md new file mode 100644 index 0000000000..43fab61c79 --- /dev/null +++ b/.changeset/plenty-feet-pay.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-components': patch +--- + +Stop forcing `target="_blank"` in the `SupportButton` but instead use the default logic of the `Link` component, that opens external targets in a new window and relative targets in the same window. diff --git a/packages/core-components/src/components/SupportButton/SupportButton.tsx b/packages/core-components/src/components/SupportButton/SupportButton.tsx index 8076636654..62d753e08b 100644 --- a/packages/core-components/src/components/SupportButton/SupportButton.tsx +++ b/packages/core-components/src/components/SupportButton/SupportButton.tsx @@ -54,9 +54,7 @@ const SupportIcon = ({ icon }: { icon: string | undefined }) => { }; const SupportLink = ({ link }: { link: SupportItemLink }) => ( - - {link.title ?? link.url} - + {link.title ?? link.url} ); const SupportListItem = ({ item }: { item: SupportItem }) => {