From a1eda903a497857017495f37a1fd3593ba7ab23c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 May 2021 11:36:33 +0200 Subject: Support '/w/' and '/w/p/' for watch page And use them as default in client --- client/src/assets/player/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/assets') 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: { const url = baseUrl ? baseUrl - : window.location.origin + window.location.pathname.replace('/embed/', '/watch/') + : window.location.origin + window.location.pathname.replace('/embed/', '/w/') const params = generateParams(window.location.search) @@ -101,7 +101,7 @@ function buildPlaylistLink (options: { const url = baseUrl ? baseUrl - : window.location.origin + window.location.pathname.replace('/video-playlists/embed/', '/videos/watch/playlist/') + : window.location.origin + window.location.pathname.replace('/video-playlists/embed/', '/w/p/') const params = generateParams(window.location.search) -- cgit v1.2.3