diff --git a/public/app/features/dashboard/services/ChangeTracker.ts b/public/app/features/dashboard/services/ChangeTracker.ts index 16d1832355b..0cec93b1796 100644 --- a/public/app/features/dashboard/services/ChangeTracker.ts +++ b/public/app/features/dashboard/services/ChangeTracker.ts @@ -6,7 +6,6 @@ import { GrafanaRootScope } from 'app/routes/GrafanaCtrl'; import { AppEventConsumer, CoreEvents } from 'app/types'; import { appEvents } from 'app/core/app_events'; import { UnsavedChangesModal } from '../components/SaveDashboard/UnsavedChangesModal'; -import { getLocationSrv } from '@grafana/runtime'; export class ChangeTracker { current: any; @@ -188,8 +187,9 @@ export class ChangeTracker { gotoNext = () => { const baseLen = this.$location.absUrl().length - this.$location.url().length; const nextUrl = this.next.substring(baseLen); - getLocationSrv().update({ - path: nextUrl, + + this.$timeout(() => { + this.$location.url(nextUrl); }); }; }