nomadro/app/read/[slug]/page.tsx
eric 0fc608ea26 Fix ebook /read links to /book/read and add compat redirects.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 18:54:03 -05:00

10 lines
343 B
TypeScript

import { redirect } from "next/navigation";
type Props = { params: Promise<{ slug: string }> };
/** Compat: /read/[slug] → /book/read#slug (hash preserved by browser on redirect when possible) */
export default async function ReadSlugCompatRedirect({ params }: Props) {
const { slug } = await params;
redirect(`/book/read#${slug}`);
}