Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 1 | /** |
| 2 | * Workspace pages that moved: `-/members` is People now, and `-/overview` | |
| 3 | * the workspace's own page (lib/workspace-nav.ts). | |
| 4 | */ | |
| 5 | import { data, redirect } from "react-router"; | |
| 6 | ||
| 7 | import type { Route } from "./+types/moved"; | |
| 8 | import { workspaceRedirect } from "../../lib/workspace-nav"; | |
| 9 | ||
| 10 | export function loader({ request }: Route.LoaderArgs) { | |
| 11 | const url = new URL(request.url); | |
| 12 | const to = workspaceRedirect(url.pathname, url.search); | |
| 13 | if (!to) throw data(null, { status: 404 }); | |
| 14 | return redirect(to, 301); | |
| 15 | } |