X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bsearch%2Fchannel-lazy-load.resolver.ts;h=d9f7ec90126b7cf6d634c33f82fd93b231f5f57b;hb=b1ed448e948211a59ab110c9d4c7c2e82819645e;hp=17a2128297742cd6d2f50366c83211b017eeadfd;hpb=1942f11d5ee6926ad93dc1b79fae18325ba5de18;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+search/channel-lazy-load.resolver.ts b/client/src/app/+search/channel-lazy-load.resolver.ts index 17a212829..d9f7ec901 100644 --- a/client/src/app/+search/channel-lazy-load.resolver.ts +++ b/client/src/app/+search/channel-lazy-load.resolver.ts @@ -12,20 +12,12 @@ export class ChannelLazyLoadResolver 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.searchVideoChannels({ search: url }) .pipe( map(result => {