Rely on the default Link behavior for opening external links in a new window in the SupportButton
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
This commit is contained in:
@@ -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.
|
||||
@@ -54,9 +54,7 @@ const SupportIcon = ({ icon }: { icon: string | undefined }) => {
|
||||
};
|
||||
|
||||
const SupportLink = ({ link }: { link: SupportItemLink }) => (
|
||||
<Link to={link.url} target="_blank" rel="noreferrer noopener">
|
||||
{link.title ?? link.url}
|
||||
</Link>
|
||||
<Link to={link.url}>{link.title ?? link.url}</Link>
|
||||
);
|
||||
|
||||
const SupportListItem = ({ item }: { item: SupportItem }) => {
|
||||
|
||||
Reference in New Issue
Block a user