Skip to content

Commit 3975144

Browse files
committed
fix: path redirect
1 parent 52462f8 commit 3975144

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/next/src/pages/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function RootPage(props: RootProps) {
2727
if (result.requiredAuthentication) {
2828
user = await getUser(props.serverFunction)
2929
if (!user) {
30-
return <NotAuthorizedPage redirectURL="/admin/login" />
30+
return <NotAuthorizedPage redirectURL="/admin/auth/login" />
3131
}
3232
}
3333

packages/next/src/views/auth/login.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function LoginClientForm() {
3131
return
3232
}
3333

34-
redirect('../collections/posts')
34+
redirect('../collections')
3535
}
3636

3737
return (

0 commit comments

Comments
 (0)