]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/utils.ts
Support playlists in share modal
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / utils.ts
index 777abb568efe89fd46940e35a1b04c3e7d19b98f..629634985b16d846d771e01d7302a8c17aef6b72 100644 (file)
@@ -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)