Files
yaak/src-web/routes/workspaces/$workspaceId/requests/$requestId.tsx
Gregory Schier b4a1c418bb Run oxfmt across repo, add format script and docs
Add .oxfmtignore to skip generated bindings and wasm-pack output.
Add npm format script, update DEVELOPMENT.md for Vite+ toolchain,
and format all non-generated files with oxfmt.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 10:15:49 -07:00

24 lines
808 B
TypeScript

import { createFileRoute, Navigate, useParams } from "@tanstack/react-router";
// -----------------------------------------------------------------------------------
// IMPORTANT: This is a deprecated route. Since the active request is optional, it was
// moved from a path param to a query parameter. This route does a redirect to the
// parent, while preserving the active request.
export const Route = createFileRoute("/workspaces/$workspaceId/requests/$requestId")({
component: RouteComponent,
});
function RouteComponent() {
const { workspaceId, requestId } = useParams({
from: "/workspaces/$workspaceId/requests/$requestId",
});
return (
<Navigate
to="/workspaces/$workspaceId"
params={{ workspaceId }}
search={(prev) => ({ ...prev, requestId })}
/>
);
}