Hide membership entry, brand ebook/video as 共创, harden H5 touch layout, and align copy with everyday nomad language. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
507 B
TypeScript
18 lines
507 B
TypeScript
import { redirect } from "next/navigation";
|
|
|
|
/** 旧多频道 URL → 唯一全屏聊天室 */
|
|
export default async function Page({
|
|
searchParams,
|
|
}: {
|
|
params: Promise<{ id: string }>;
|
|
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
}) {
|
|
const sp = await searchParams;
|
|
const introRaw = sp.intro;
|
|
const intro = Array.isArray(introRaw) ? introRaw[0] : introRaw;
|
|
if (intro) {
|
|
redirect(`/social/chat?intro=${encodeURIComponent(intro)}`);
|
|
}
|
|
redirect("/social/chat");
|
|
}
|