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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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