diff --git a/src/lib/components/ui/LocationSearchBox.svelte b/src/lib/components/ui/LocationSearchBox.svelte index 1fd33c6..5156771 100644 --- a/src/lib/components/ui/LocationSearchBox.svelte +++ b/src/lib/components/ui/LocationSearchBox.svelte @@ -82,7 +82,8 @@ selectedIndex = -1; value = ''; console.log('Selected Location: ', JSON.stringify(loc)); - goto(`/board?stn=${loc.c.toLowerCase()}`); + const queryString = loc.c || loc.t + goto(`/board?loc=${queryString.toLowerCase()}`); } function handleKey(e: KeyboardEvent) {