diff --git a/src/components/clinical-dashboard/global-search-shell.tsx b/src/components/clinical-dashboard/global-search-shell.tsx index c381aaced..9e5d7a18a 100644 --- a/src/components/clinical-dashboard/global-search-shell.tsx +++ b/src/components/clinical-dashboard/global-search-shell.tsx @@ -681,36 +681,7 @@ function GlobalStandaloneSearchShellClient({ ? "back" : "menu" } - onMobileBack={() => { - if (isInfoPage) { - if (pathname.startsWith("/services/")) { - router.push("/services"); - } else if (pathname.startsWith("/forms/")) { - router.push("/forms"); - } else if (pathname.startsWith("/medications/")) { - router.push("/?mode=prescribing"); - } else if (pathname.startsWith("/differentials/")) { - router.push("/differentials"); - } else if (pathname.startsWith("/dsm/")) { - router.push("/dsm"); - } else if (pathname.startsWith("/specifiers/")) { - router.push("/specifiers"); - } else if (pathname.startsWith("/formulation/")) { - router.push("/formulation"); - } else if (pathname.startsWith("/therapy-compass/")) { - router.push("/therapy-compass"); - } else if (pathname.startsWith("/factsheets/")) { - router.push("/factsheets"); - } else if (pathname.startsWith("/documents/")) { - router.push("/documents/search"); - } else { - router.back(); - } - } else { - setQuery(""); - navigateToMode(searchMode, { focus: true }); - } - }} + onMobileBack={() => router.back()} queryModeOptions={mockupQueryModeOptions} queryInputRef={inputRef} recentQueries={recentQueries}