From: Chocobozzz Date: Mon, 26 Jul 2021 11:37:18 +0000 (+0200) Subject: Fix URL copy in embed X-Git-Tag: v3.4.0-rc.1~183^2~3 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=a66424978c681af87aaee92ce6d2ca600d79b82c;p=github%2FChocobozzz%2FPeerTube.git Fix URL copy in embed --- diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts index 2bb70d1fa..f26176acc 100644 --- a/client/src/assets/player/utils.ts +++ b/client/src/assets/player/utils.ts @@ -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)