diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-28 11:36:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-28 11:38:08 +0200 |
commit | a1eda903a497857017495f37a1fd3593ba7ab23c (patch) | |
tree | a109f34af8b18c087caf6d5a7264267550f0416d /client/src/app/shared/shared-video-playlist | |
parent | 012580d98f489e599d44a9a2a0bdc892b9455a90 (diff) | |
download | PeerTube-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/app/shared/shared-video-playlist')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts index 7c083ae26..86c281a1e 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts | |||
@@ -71,7 +71,7 @@ export class VideoPlaylistElementMiniatureComponent implements OnInit { | |||
71 | buildRouterLink () { | 71 | buildRouterLink () { |
72 | if (!this.playlist) return null | 72 | if (!this.playlist) return null |
73 | 73 | ||
74 | return [ '/videos/watch/playlist', this.playlist.uuid ] | 74 | return [ '/w/p', this.playlist.uuid ] |
75 | } | 75 | } |
76 | 76 | ||
77 | buildRouterQuery () { | 77 | buildRouterQuery () { |
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts b/client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts index 6b0b1056f..9bbec6038 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts | |||
@@ -18,6 +18,6 @@ export class VideoPlaylistMiniatureComponent { | |||
18 | if (this.toManage) return [ '/my-library/video-playlists', this.playlist.uuid ] | 18 | if (this.toManage) return [ '/my-library/video-playlists', this.playlist.uuid ] |
19 | if (this.playlist.videosLength === 0) return null | 19 | if (this.playlist.videosLength === 0) return null |
20 | 20 | ||
21 | return [ '/videos/watch/playlist', this.playlist.uuid ] | 21 | return [ '/w/p', this.playlist.uuid ] |
22 | } | 22 | } |
23 | } | 23 | } |