DashboardLinks: Fixes links always cause full page reload (#31178) (#31181)

(cherry picked from commit 9629dded42)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
Grot (@grafanabot)andTorkel Ödegaard authored and GitHub committed 2021-02-12 18:14:45 +01:00
1 parent e42d6931c4
commit b0f6cf8669
1 file changed
+1 -1
@@ -46,7 +46,7 @@ export const DashboardLinks: FC<Props> = ({ dashboard, links }) => {
<a
className="gf-form-label gf-form-label--dashlink"
href={sanitizeUrl(linkInfo.href)}
target={link.targetBlank ? '_blank' : '_self'}
target={link.targetBlank ? '_blank' : undefined}
aria-label={selectors.components.DashboardLinks.link}
>
<Icon name={iconMap[link.icon] as IconName} style={{ marginRight: '4px' }} />