Harden onion boot flow and deepen site surfaces
Add persistent onion key backup and restore, improve startup resilience, and flesh out the major site verticals with richer navigation, search coverage, and operator documentation. Made-with: Cursor
This commit is contained in:
19
app/forum/t/[id]/page.tsx
Normal file
19
app/forum/t/[id]/page.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
import { useParams, useRouter } from "next/navigation";
|
||||
|
||||
/** Old thread URLs → /forum/post/[id] */
|
||||
export default function LegacyForumThreadRedirect() {
|
||||
const params = useParams();
|
||||
const router = useRouter();
|
||||
const id = typeof params.id === "string" ? params.id : "";
|
||||
|
||||
useEffect(() => {
|
||||
if (id) router.replace(`/forum/post/${id}`);
|
||||
}, [id, router]);
|
||||
|
||||
return (
|
||||
<p className="font-mono text-sm text-[#8a7d6b]">Redirecting…</p>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user