Skip to content

Commit cf2f61a

Browse files
authored
[Docs Site] Support legacy q param in search (#20812)
1 parent 543f33f commit cf2f61a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/search/InstantSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function SearchBox(props: UseSearchBoxProps) {
1515

1616
useEffect(() => {
1717
const params = new URLSearchParams(window.location.search);
18-
const query = params.get("query");
18+
const query = params.get("q") ?? params.get("query");
1919

2020
if (query) {
2121
refine(query);

0 commit comments

Comments
 (0)