From: Raicuparta Date: Thu, 29 Jun 2023 03:12:16 +0000 (+0100) Subject: Search only communities by default when coming from communities page X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7Bargs.pageFn.next%7D?a=commitdiff_plain;h=92f6fe914fce3838fa9ad12333f72e5db5535518;p=lemmy-ui.git Search only communities by default when coming from communities page --- diff --git a/src/shared/components/community/communities.tsx b/src/shared/components/community/communities.tsx index a84ec05..30a4280 100644 --- a/src/shared/components/community/communities.tsx +++ b/src/shared/components/community/communities.tsx @@ -284,7 +284,7 @@ export class Communities extends Component { handleSearchSubmit(i: Communities, event: any) { event.preventDefault(); const searchParamEncoded = encodeURIComponent(i.state.searchText); - i.context.router.history.push(`/search?q=${searchParamEncoded}`); + i.context.router.history.push(`/search?q=${searchParamEncoded}&type=Communities`); } static async fetchInitialData({