X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fsearch%2Fsearch.component.ts;h=8d615fd058dd990674217300592a632870ab6629;hb=4a9e71c2b1ef57de01cd04984348b3957ebbc21d;hp=8860b9268cc40d54769b2a5fb5ebaea51a3cea3b;hpb=7afea880e561196671f186045c94f09511189405;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/search/search.component.ts b/client/src/app/search/search.component.ts index 8860b9268..8d615fd05 100644 --- a/client/src/app/search/search.component.ts +++ b/client/src/app/search/search.component.ts @@ -44,7 +44,8 @@ export class SearchComponent implements OnInit, OnDestroy { queryParams => { const querySearch = queryParams['search'] - if (!querySearch) return this.redirectService.redirectToHomepage() + // New empty search + if (this.currentSearch && !querySearch) return this.redirectService.redirectToHomepage() // Search updated, reset filters if (this.currentSearch !== querySearch) {