From 90d415861d283d21326038279c9a93e0787aaf07 Mon Sep 17 00:00:00 2001 From: Dominik Prokop Date: Wed, 5 Feb 2020 13:29:11 +0100 Subject: [PATCH] Dashboard edit: Fix 404 when making dashboard editable --- .../dashboard/components/DashboardSettings/SettingsCtrl.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/components/DashboardSettings/SettingsCtrl.ts b/public/app/features/dashboard/components/DashboardSettings/SettingsCtrl.ts index 5fffadf472f..03ca5aba711 100644 --- a/public/app/features/dashboard/components/DashboardSettings/SettingsCtrl.ts +++ b/public/app/features/dashboard/components/DashboardSettings/SettingsCtrl.ts @@ -12,6 +12,7 @@ import { CoreEvents } from 'app/types'; import { GrafanaRootScope } from 'app/routes/GrafanaCtrl'; import { AppEvents } from '@grafana/data'; import { promiseToDigest } from '../../../../core/utils/promiseToDigest'; +import locationUtil from 'app/core/utils/location_util'; export class SettingsCtrl { dashboard: DashboardModel; @@ -184,7 +185,7 @@ export class SettingsCtrl { this.buildSectionList(); const currentSection: any = _.find(this.sections, { id: this.viewId } as any); - this.$location.url(currentSection.url); + this.$location.url(locationUtil.stripBaseFromUrl(currentSection.url)); } deleteDashboard() {