Commit 9629dded by Torkel Ödegaard Committed by GitHub

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

parent d1937408
......@@ -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' }} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment