aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-28 11:36:33 +0200
committerChocobozzz <me@florianbigard.com>2021-05-28 11:38:08 +0200
commita1eda903a497857017495f37a1fd3593ba7ab23c (patch)
treea109f34af8b18c087caf6d5a7264267550f0416d /client/src/assets/player/utils.ts
parent012580d98f489e599d44a9a2a0bdc892b9455a90 (diff)
downloadPeerTube-a1eda903a497857017495f37a1fd3593ba7ab23c.tar.gz
PeerTube-a1eda903a497857017495f37a1fd3593ba7ab23c.tar.zst
PeerTube-a1eda903a497857017495f37a1fd3593ba7ab23c.zip
Support '/w/' and '/w/p/' for watch page
And use them as default in client
Diffstat (limited to 'client/src/assets/player/utils.ts')
-rw-r--r--client/src/assets/player/utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts
index 1243526d2..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
@@ -101,7 +101,7 @@ function buildPlaylistLink (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