Skip to content

Commit

Permalink
Search only communities by default when coming from communities page
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta committed Jun 29, 2023
1 parent 4674f6f commit 92f6fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/components/community/communities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class Communities extends Component<any, CommunitiesState> {
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({
Expand Down

0 comments on commit 92f6fe9

Please sign in to comment.