From 5b5e333f068c7bd5fcf519bcd3f687eb46221883 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 27 Mar 2018 17:10:56 +0200 Subject: Fix videos list params --- client/src/app/videos/video-list/video-search.component.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'client/src/app/videos/video-list') diff --git a/client/src/app/videos/video-list/video-search.component.ts b/client/src/app/videos/video-list/video-search.component.ts index 67857a0a9..b94be8e11 100644 --- a/client/src/app/videos/video-list/video-search.component.ts +++ b/client/src/app/videos/video-list/video-search.component.ts @@ -39,6 +39,7 @@ export class VideoSearchComponent extends AbstractVideoList implements OnInit, O this.subActivatedRoute = this.route.queryParams.subscribe( queryParams => { const querySearch = queryParams['search'] + if (!querySearch) return this.redirectService.redirectToHomepage() if (this.otherRouteParams.search === querySearch) return -- cgit v1.2.3