fix(admin): add /admin index redirect and point root redirect at it

/admin had no index page (only /admin/redaktionen, /abrechnungen, /audit),
so authenticated admins hitting /admin — including the admin layout's
wordmark link — got a 404. Add src/app/admin/page.tsx that redirects to
/admin/redaktionen, and point the root home redirect at the same path so
post-login doesn't 404.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Leon TonhäuserandClaude committed 2026-08-11 00:43:29 +02:00
1 parent cc2079db77
commit 7e50c7c2fd
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import { redirect } from "next/navigation";
// /admin has no dashboard of its own; the admin layout's wordmark links here,
// so route authenticated admins to the editorials list instead of 404ing.
export default function AdminIndexPage() {
redirect("/admin/redaktionen");
}