]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+search/video-lazy-load.resolver.ts
Add admin view to manage comments
[github/Chocobozzz/PeerTube.git] / client / src / app / +search / video-lazy-load.resolver.ts
index e8b2b8c74bf824c5da5e50b386d48799f98826d6..d4fe6ed793e233be2a227e7366cbbf163f244a18 100644 (file)
@@ -12,20 +12,12 @@ export class VideoLazyLoadResolver implements Resolve<any> {
 
   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 => {