返回 CodeWhale
page.tsx
根目录 / web / app / [locale] / docs / constitution / page.tsx
1 import { permanentRedirect } from "next/navigation";
2
3 /** `/constitution` is the canonical constitution page; this docs URL only redirects there. */
4 export default async function DocsConstitutionRedirect({ params }: { params: Promise<{ locale: string }> }) {
5 const { locale } = await params;
6 permanentRedirect(`/${locale}/constitution`);
7 }
8
8 lines Plain Text