- path: 'recently-added',
- component: VideoRecentlyAddedComponent,
+ matcher: (url: UrlSegment[]) => {
+ if (url.length === 1 && [ 'recently-added', 'trending', 'local' ].includes(url[0].path)) {
+ return {
+ consumed: url,
+ posParams: {
+ page: new UrlSegment(url[0].path, {})
+ }
+ }
+ }
+
+ return null
+ },
+
+ component: VideosListCommonPageComponent,