feat : update
This commit is contained in:
@@ -14,7 +14,7 @@ export default async function GuidePreviewPage({
|
||||
params: Promise<{ character: string; page?: string[] }>;
|
||||
}) {
|
||||
await connection();
|
||||
if (!(await getAdminSession())) redirect("/admin/login");
|
||||
if (!(await getAdminSession())) redirect("/login?next=%2Fadmin");
|
||||
const { character, page } = await params;
|
||||
if (page && page.length > 1) notFound();
|
||||
const header = await getGuideEditorHeader(character);
|
||||
|
||||
Reference in New Issue
Block a user