]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix URL copy in embed
authorChocobozzz <me@florianbigard.com>
Mon, 26 Jul 2021 11:37:18 +0000 (13:37 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 26 Jul 2021 11:37:18 +0000 (13:37 +0200)
client/src/assets/player/utils.ts

index 2bb70d1fa1a99ba0118eac6647fa96f36b4ee84d..f26176accd6a7e81af7eb4b8d30da0ab0722dd5a 100644 (file)
@@ -65,7 +65,7 @@ function buildVideoLink (options: {
 
   const url = baseUrl
     ? baseUrl
-    : window.location.origin + window.location.pathname.replace('/embed/', '/w/')
+    : window.location.origin + window.location.pathname.replace('/videos/embed/', '/w/')
 
   const params = generateParams(window.location.search)