diff --git a/app/app/lib/auth.server.ts b/app/app/lib/auth.server.ts
index 54b3e69..c485436 100644
--- a/app/app/lib/auth.server.ts
+++ b/app/app/lib/auth.server.ts
@@ -90,7 +90,7 @@ export function requireAdmin(request: Request): AdminSession {
if (!session) {
const url = new URL(request.url);
const next = `${url.pathname}${url.search}`;
- throw redirect(`/admin/login?next=${encodeURIComponent(next)}`);
+ throw redirect(`/signin?next=${encodeURIComponent(next)}`);
}
return session;
}
diff --git a/app/app/routes/admin.tsx b/app/app/routes/admin.tsx
index cfe73fe..c201b90 100644
--- a/app/app/routes/admin.tsx
+++ b/app/app/routes/admin.tsx
@@ -146,7 +146,7 @@ export default function AdminRoute() {
return;
}
setAuthState("denied");
- window.location.replace("/admin/login?next=%2Fadmin");
+ window.location.replace("/signin?next=%2Fadmin");
})
.catch(() => {
if (alive) setAuthState("denied");
@@ -335,7 +335,7 @@ export default function AdminRoute() {