diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index abe4dd8..89cf8b3 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -9,7 +9,7 @@ export default async function Page({ searchParams: Promise<{ [key: string]: string | string[] | undefined }>; }) { // ! fix me - const searchUniversity = (await searchParams)["uni"] as string; + const searchUniversity = (await searchParams)["university"] as string; const searchGE = (await searchParams)["ge"] as string; const university = searchUniversity || Object.keys(UNIVERSITY_GE)[0]; diff --git a/src/components/hero/Examples.tsx b/src/components/hero/Examples.tsx index 9888af0..2af58b0 100644 --- a/src/components/hero/Examples.tsx +++ b/src/components/hero/Examples.tsx @@ -25,21 +25,21 @@ const EXAMPLES: Example[] = [ geText: "GE IV - Arts and Humanities", institution: "UCI", ge: "IV", - link: "/search?uni=University%20of%20California%2C%20Irvine&ge=GE%20IV", + link: "/search?ge=GE+IV&university=University+of+California,+Irvine", }, { name: "UCLA", geText: "Life Sciences", institution: "UCLA", ge: "Scientific Inquiry: Life Sciences", - link: "search?uni=University%20of%20California%2C%20Los%20Angeles&ge=Scientific%20Inquiry%3A%20Life%20Sciences", + link: "/search?ge=Scientific+Inquiry:+Life+Sciences&university=University+of+California,+Los+Angeles", }, { name: "UC Santa Barbara", geText: "GE E - Culture and Thought", institution: "UCSB", ge: "E", - link: "/search?uni=University%20of%20California%2C%20Santa%20Barbara&ge=GE%20E", + link: "/search?ge=GE+E&university=University+of+California,+Santa+Barbara", }, ]; diff --git a/src/components/search/Search.tsx b/src/components/search/Search.tsx index 46207b7..fdbf24a 100644 --- a/src/components/search/Search.tsx +++ b/src/components/search/Search.tsx @@ -27,7 +27,7 @@ export function Search({ }) { const { filterValues } = useSearchContext(); - const [university, setUniversity] = useQueryState("uni", { + const [university, setUniversity] = useQueryState("university", { defaultValue: _university, shallow: false, clearOnDefault: false,