X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bsearch%2Fvideo-lazy-load.resolver.ts;h=d4fe6ed793e233be2a227e7366cbbf163f244a18;hb=f1273314593a4a7dc7ec9594ce0c6c3ae8f62b34;hp=e8b2b8c74bf824c5da5e50b386d48799f98826d6;hpb=1942f11d5ee6926ad93dc1b79fae18325ba5de18;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+search/video-lazy-load.resolver.ts b/client/src/app/+search/video-lazy-load.resolver.ts index e8b2b8c74..d4fe6ed79 100644 --- a/client/src/app/+search/video-lazy-load.resolver.ts +++ b/client/src/app/+search/video-lazy-load.resolver.ts @@ -12,20 +12,12 @@ export class VideoLazyLoadResolver implements Resolve { resolve (route: ActivatedRouteSnapshot) { const url = route.params.url - const externalRedirect = route.params.externalRedirect - const fromPath = route.params.fromPath if (!url) { console.error('Could not find url param.', { params: route.params }) return this.router.navigateByUrl('/404') } - if (externalRedirect === 'true') { - window.open(url) - this.router.navigateByUrl(fromPath) - return - } - return this.searchService.searchVideos({ search: url }) .pipe( map(result => {