Files
threadcount-community/app/app/activity/page.tsx
T
ThreadCount 0910bc32c1 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).
2026-09-16 07:57:54 +10:00

15 lines
688 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { redirect } from "next/navigation";
/* The activity log now lives in Settings Data & audit log. next.config.ts redirects this path as
* well; this stub keeps old links working if that map ever changes. Query strings carry over. */
export default async function Activity({ searchParams }: { searchParams: Promise<{ [key: string]: string | string[] | undefined }> }) {
const sp = await searchParams;
const q = new URLSearchParams();
for (const [k, v] of Object.entries(sp)) {
if (k === "tab" || v === undefined) continue;
for (const one of Array.isArray(v) ? v : [v]) q.append(k, one);
}
q.set("tab", "audit");
redirect(`/app/settings?${q.toString()}`);
}