From 2a09acd8c711e6c0d1d2176ac09611787a7704b3 Mon Sep 17 00:00:00 2001 From: copyhold Date: Thu, 21 Dec 2023 14:08:36 +0200 Subject: [PATCH] Replace sharing URL --- public/app/features/playlist/ShareModal.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/app/features/playlist/ShareModal.tsx b/public/app/features/playlist/ShareModal.tsx index b5d75889a8474..41ece4f1c5071 100644 --- a/public/app/features/playlist/ShareModal.tsx +++ b/public/app/features/playlist/ShareModal.tsx @@ -20,7 +20,7 @@ export const ShareModal = ({ playlistId, onDismiss }: ShareModalProps) => { const modes: Array> = [ { label: 'Normal', value: false }, { label: 'TV', value: 'tv' }, - { label: 'Kiosk', value: 'true' }, + { label: 'Kiosk', value: true }, ]; const onShareUrlCopy = () => { @@ -29,13 +29,17 @@ export const ShareModal = ({ playlistId, onDismiss }: ShareModalProps) => { const params: UrlQueryMap = {}; if (mode) { - params.kiosk = mode; + params.kiosk = mode.toString(); } if (autoFit) { params.autofitpanels = true; } - const shareUrl = urlUtil.renderUrl(`${buildBaseUrl()}/grafana-app/play/${playlistId}`, params); + // LOGZ.IO GRAFANA CHANGE :: DEV-42761 fix playlist sharing url + const shareUrl = urlUtil.renderUrl( + `${buildBaseUrl().replace('playlist', 'grafana-app/playlist')}/play/${playlistId}`, + params + ); return (