Don't explicitly set target but instead fallback to the logic in the Link component
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
This commit is contained in:
@@ -170,7 +170,6 @@ describe('<AboutCard />', () => {
|
||||
'href',
|
||||
'https://github.com/backstage/backstage/edit/master/software.yaml',
|
||||
);
|
||||
expect(editLink).toHaveAttribute('target', '_blank');
|
||||
});
|
||||
|
||||
it('renders without "view source" link', async () => {
|
||||
|
||||
@@ -153,7 +153,6 @@ export function AboutCard({ variant }: AboutCardProps) {
|
||||
disabled={!entityMetadataEditUrl}
|
||||
title="Edit Metadata"
|
||||
to={entityMetadataEditUrl ?? '#'}
|
||||
target="_blank"
|
||||
>
|
||||
<EditIcon />
|
||||
</IconButton>
|
||||
|
||||
Reference in New Issue
Block a user