app/routes/gone.tsx
40 lines and 3 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.
Functions
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| loader | 12 to 14 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No data: no mutants in this code |
| meta | 16 to 21 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No data: no mutants in this code |
| Gone | 23 to 44 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No data: no mutants in this code |
Imports
It imports app/components/page-shell.tsx, app/lib/seo.ts. No module of this repo imports it.
Source
import { Link, data } from "react-router";
import { PageShell } from "~/components/page-shell";
import { SITE } from "~/lib/seo";
/**
* What a removed WordPress address answers on the apex host: 410 Gone, which tells a search engine to
* drop the URL rather than retry it as it would a 404, with somewhere for a person to go next. The
* gateway renders this route for every removed path (app/lib/wordpress-redirects.mjs), so the address
* bar keeps the old URL. No `headers` export: it stays uncached, and noindex keeps it out of results.
*/
export function loader() {
return data(null, { status: 410 });
}
export function meta() {
return [
{ title: `Page removed | ${SITE.name}` },
{ name: "robots", content: "noindex" },
];
}
export default function Gone() {
return (
<PageShell>
<header className="page-head">
<h1>This page was removed</h1>
<p className="muted">
It belonged to the old version of this site and is not coming back. The research, the
protocols and the phages all have new homes.
</p>
</header>
<ul>
<li>
<Link to="/research">Research</Link>: every area, protocol and publication, with a sentence
on each.
</li>
<li>
<Link to="/search">Search the site</Link> for what you were looking for.
</li>
</ul>
</PageShell>
);
}