Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
import type { LoaderFunctionArgs } from "react-router";
|
||||
import { redirect } from "react-router";
|
||||
|
||||
import { chatIndexPath } from "~/modules/chat/routes/chatRoutePaths";
|
||||
|
||||
export const loader = ({ request, params }: LoaderFunctionArgs): Response => {
|
||||
const tenantSlug = params.tenant ?? "";
|
||||
const source = new URL(request.url);
|
||||
const target = new URL(chatIndexPath(tenantSlug), source.origin);
|
||||
target.searchParams.set("archived", "true");
|
||||
const query = source.searchParams.get("query");
|
||||
if (query) target.searchParams.set("query", query);
|
||||
return redirect(`${target.pathname}${target.search}`);
|
||||
};
|
||||
|
||||
export const handle = {
|
||||
moduleKey: "chat",
|
||||
breadcrumbKey: "chat.archived.title",
|
||||
};
|
||||
Reference in new issue
Block a user