Merge pull request #1685 from Raicuparta/community-search
Communities page: make search type default to "Communities'
This commit is contained in:
commit
67365d5878
1 changed files with 3 additions and 1 deletions
|
@ -284,7 +284,9 @@ export class Communities extends Component<any, CommunitiesState> {
|
||||||
handleSearchSubmit(i: Communities, event: any) {
|
handleSearchSubmit(i: Communities, event: any) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const searchParamEncoded = encodeURIComponent(i.state.searchText);
|
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({
|
static async fetchInitialData({
|
||||||
|
|
Loading…
Reference in a new issue