nomadro/src/app/social/chat/[id]/page.tsx
Eric efb408162d Deepen /social UX: people profiles, city directory, date deck, and plain-language IA.
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>
2026-11-01 21:25:37 +08:00

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");
}