Skip to content

Commit

Permalink
fix(search): use prefixed index name for algolia routing
Browse files Browse the repository at this point in the history
fixes an issue where the `?q=` param wouldn't be taken into account by
Algolia
  • Loading branch information
marcelgerber committed Mar 18, 2024
1 parent a8fd7ad commit d490348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/search/SearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export class InstantSearchContainer extends React.Component {
routeToState(routeState) {
const query = routeState.q
return {
[SearchIndexName.Pages]: {
[getIndexName(SearchIndexName.Pages)]: {
query: query,
},
}
Expand Down

0 comments on commit d490348

Please sign in to comment.