diff --git a/src/app/xtream-tauri/search-results/search-results.component.html b/src/app/xtream-tauri/search-results/search-results.component.html index 10ccdbf1e..690a55124 100644 --- a/src/app/xtream-tauri/search-results/search-results.component.html +++ b/src/app/xtream-tauri/search-results/search-results.component.html @@ -6,6 +6,7 @@ Search content { + this.searchInput.nativeElement.focus(); + }); + } + onSearch() { if (this.searchTerm.length >= 3) { const types = Object.entries(this.filters) @@ -50,12 +64,12 @@ export class SearchResultsComponent { this.xtreamStore.setSelectedContentType(type); if (item.type === 'live') { - this.router.navigate(['..', 'live'], { + this.router.navigate(['..', type, item.category_id], { relativeTo: this.activatedRoute, }); } else { this.router.navigate( - ['..', item.category_id, type, item.xtream_id], + ['..', type, item.category_id, item.xtream_id], { relativeTo: this.activatedRoute, }