diff --git a/public/app/features/dashboard/services/TimeSrv.ts b/public/app/features/dashboard/services/TimeSrv.ts index 4e8e18c6eb3..ff3f1b6c2b3 100644 --- a/public/app/features/dashboard/services/TimeSrv.ts +++ b/public/app/features/dashboard/services/TimeSrv.ts @@ -148,6 +148,11 @@ export class TimeSrv { } private initTimeFromUrl() { + // If we are in a public dashboard ignore the time range in the url + if (config.isPublicDashboardView) { + return; + } + const params = locationService.getSearch(); if (params.get('time') && params.get('time.window')) { @@ -275,6 +280,11 @@ export class TimeSrv { } setTime(time: RawTimeRange, updateUrl = true) { + // If we are in a public dashboard ignore time range changes + if (config.isPublicDashboardView) { + return; + } + extend(this.time, time); // disable refresh if zoom in or zoom out