ThreadCount Community edition
Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from 38e16eb on 2026-09-15. Licensed under the Functional Source License (FSL-1.1-ALv2).
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
/* Search became the People tab (stock search is on the Stock tab). The query comes along. */
|
||||
export default async function Search({ searchParams }: { searchParams: Promise<Record<string, string | string[] | undefined>> }) {
|
||||
const q = await searchParams;
|
||||
const term = typeof q.q === "string" ? q.q.trim().slice(0, 80) : "";
|
||||
redirect(term ? `/m/people?q=${encodeURIComponent(term)}` : "/m/people");
|
||||
}
|
||||
Reference in New Issue
Block a user