fix links to dashboard settings (#33782)

This commit is contained in:
Domas
2021-05-06 16:46:33 +03:00
committed by GitHub
parent 3a1437fe9c
commit 0b3d757172

View File

@@ -68,7 +68,7 @@ export const RulesGroup: FC<Props> = React.memo(({ group, namespace }) => {
const rulerRule = group.rules[0]?.rulerRule;
const folderUID = rulerRule && isGrafanaRulerRule(rulerRule) && rulerRule.grafana_alert.namespace_uid;
if (folderUID) {
const baseUrl = `dashboards/f/${folderUID}/${kbn.slugifyForUrl(namespace.name)}`;
const baseUrl = `/dashboards/f/${folderUID}/${kbn.slugifyForUrl(namespace.name)}`;
actionIcons.push(<ActionIcon key="edit" icon="pen" tooltip="edit" to={baseUrl + '/settings'} target="__blank" />);
actionIcons.push(
<ActionIcon