diff --git a/src/app/story/[storylineId]/[plotIndex]/page.tsx b/src/app/story/[storylineId]/[plotIndex]/page.tsx index 7c3e8e16..e257082b 100644 --- a/src/app/story/[storylineId]/[plotIndex]/page.tsx +++ b/src/app/story/[storylineId]/[plotIndex]/page.tsx @@ -1,4 +1,5 @@ import { type Metadata } from "next"; +import { redirect } from "next/navigation"; import { createServerClient, type Storyline, type Plot } from "../../../../../lib/supabase"; import { truncateAddress } from "../../../../../lib/utils"; import { ViewTracker } from "../../../../components/ViewCount"; @@ -56,6 +57,11 @@ export default async function PlotDetailPage({ params }: { params: Params }) { return ; } + // Genesis (plot 0) redirects to the main story page + if (pidx === 0) { + redirect(`/story/${sid}`); + } + const supabase = createServerClient(); if (!supabase) return ;