diff options
Diffstat (limited to 'client/src/app/+search/shared')
3 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+search/shared/abstract-lazy-load.resolver.ts b/client/src/app/+search/shared/abstract-lazy-load.resolver.ts index 31240f451..b18a5b64d 100644 --- a/client/src/app/+search/shared/abstract-lazy-load.resolver.ts +++ b/client/src/app/+search/shared/abstract-lazy-load.resolver.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Observable } from 'rxjs' | 1 | import { Observable } from 'rxjs' |
2 | import { map } from 'rxjs/operators' | 2 | import { map } from 'rxjs/operators' |
3 | import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router' | 3 | import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router' |
4 | import { ResultList } from '@shared/models/result-list.model' | 4 | import { ResultList } from '@shared/models' |
5 | 5 | ||
6 | export abstract class AbstractLazyLoadResolver <T> implements Resolve<any> { | 6 | export abstract class AbstractLazyLoadResolver <T> implements Resolve<any> { |
7 | protected router: Router | 7 | protected router: Router |
diff --git a/client/src/app/+search/shared/playlist-lazy-load.resolver.ts b/client/src/app/+search/shared/playlist-lazy-load.resolver.ts index 14ae798df..3310e9627 100644 --- a/client/src/app/+search/shared/playlist-lazy-load.resolver.ts +++ b/client/src/app/+search/shared/playlist-lazy-load.resolver.ts | |||
@@ -19,6 +19,6 @@ export class PlaylistLazyLoadResolver extends AbstractLazyLoadResolver<VideoPlay | |||
19 | } | 19 | } |
20 | 20 | ||
21 | protected buildUrl (playlist: VideoPlaylist) { | 21 | protected buildUrl (playlist: VideoPlaylist) { |
22 | return '/w/p/' + playlist.uuid | 22 | return VideoPlaylist.buildWatchUrl(playlist) |
23 | } | 23 | } |
24 | } | 24 | } |
diff --git a/client/src/app/+search/shared/video-lazy-load.resolver.ts b/client/src/app/+search/shared/video-lazy-load.resolver.ts index 12b5b2e82..69a3eb159 100644 --- a/client/src/app/+search/shared/video-lazy-load.resolver.ts +++ b/client/src/app/+search/shared/video-lazy-load.resolver.ts | |||
@@ -19,6 +19,6 @@ export class VideoLazyLoadResolver extends AbstractLazyLoadResolver<Video> { | |||
19 | } | 19 | } |
20 | 20 | ||
21 | protected buildUrl (video: Video) { | 21 | protected buildUrl (video: Video) { |
22 | return '/w/' + video.uuid | 22 | return Video.buildWatchUrl(video) |
23 | } | 23 | } |
24 | } | 24 | } |