Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

13 linesCodeBlameRaw
1/**
2 * An agent's old People address, `-/people/agents/:handle`. People lists
3 * people only; an agent's profile is its page in Agents, so links to the
4 * old address are sent there for good (lib/people.ts `agentPath`).
5 */
6import { redirect } from "react-router";
7
8import type { Route } from "./+types/agent";
9import { agentPath } from "../../../lib/people";
10
11export function loader({ params }: Route.LoaderArgs) {
12 return redirect(agentPath(params.owner.toLowerCase(), params.handle.toLowerCase()), 301);
13}