From 3a1fed11c52705002cbf2a17294509fb5a89237c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 Dec 2019 10:05:00 +0100 Subject: Support playlists in share modal --- client/src/assets/player/utils.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/src/assets') diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts index 777abb568..629634985 100644 --- a/client/src/assets/player/utils.ts +++ b/client/src/assets/player/utils.ts @@ -51,6 +51,8 @@ function buildVideoLink (options: { : window.location.origin + window.location.pathname.replace('/embed/', '/watch/') const params = new URLSearchParams(window.location.search) + // Remove this unused parameter when we are on a playlist page + params.delete('videoId') if (options.startTime) { const startTimeInt = Math.floor(options.startTime) -- cgit v1.2.3