aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/utils.ts')
-rw-r--r--client/src/assets/player/utils.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts
index d7451fa1d..2bb70d1fa 100644
--- a/client/src/assets/player/utils.ts
+++ b/client/src/assets/player/utils.ts
@@ -65,7 +65,7 @@ function buildVideoLink (options: {
65 65
66 const url = baseUrl 66 const url = baseUrl
67 ? baseUrl 67 ? baseUrl
68 : window.location.origin + window.location.pathname.replace('/embed/', '/watch/') 68 : window.location.origin + window.location.pathname.replace('/embed/', '/w/')
69 69
70 const params = generateParams(window.location.search) 70 const params = generateParams(window.location.search)
71 71
@@ -95,13 +95,13 @@ function buildVideoLink (options: {
95function buildPlaylistLink (options: { 95function buildPlaylistLink (options: {
96 baseUrl?: string 96 baseUrl?: string
97 97
98 playlistPosition: number 98 playlistPosition?: number
99}) { 99}) {
100 const { baseUrl } = options 100 const { baseUrl } = options
101 101
102 const url = baseUrl 102 const url = baseUrl
103 ? baseUrl 103 ? baseUrl
104 : window.location.origin + window.location.pathname.replace('/video-playlists/embed/', '/videos/watch/playlist/') 104 : window.location.origin + window.location.pathname.replace('/video-playlists/embed/', '/w/p/')
105 105
106 const params = generateParams(window.location.search) 106 const params = generateParams(window.location.search)
107 107