From 5adb923aceb7b4a136db769165193d3edb72d1ab Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Tue, 19 Mar 2019 16:34:33 +0100 Subject: [PATCH] Only keep certain query params when going to next playlist --- public/app/features/playlist/playlist_srv.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/features/playlist/playlist_srv.ts b/public/app/features/playlist/playlist_srv.ts index 97ebfff7320..158faa085de 100644 --- a/public/app/features/playlist/playlist_srv.ts +++ b/public/app/features/playlist/playlist_srv.ts @@ -41,7 +41,9 @@ export class PlaylistSrv { const dash = this.dashboards[this.index]; const queryParams = this.$location.search(); - const filteredParams = _.pickBy(queryParams, value => value !== null); + const filteredParams = _.pickBy(queryParams, key => { + return key === 'kiosk' || key === 'autofitpanels' || key === 'orgId'; + }); const nextDashboardUrl = locationUtil.stripBaseFromUrl(dash.url); // this is done inside timeout to make sure digest happens after