Skip to content

Commit 47b647d

Browse files
committed
fix invalid link href
1 parent 8f90fc0 commit 47b647d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

apps/web/layouts/LayoutDefault.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function AuthSection() {
4040
<div className="flex w-full p-2 my-2 flex-col border-2 border-neutral-300">
4141
<span className="font-bold">Logged in as: {user.username}</span>
4242

43-
<Link href="/logout" onclick={handleLogout}>
43+
<Link href="#" onclick={handleLogout}>
4444
Logout
4545
</Link>
4646
</div>

apps/web/pages/login/+guard.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { redirect } from "vike/abort"
33
import type { GuardAsync } from "vike/types"
44

55
const guard: GuardAsync = async (pageContext): ReturnType<GuardAsync> => {
6-
console.log("guard", pageContext.user)
76
if (pageContext.user) {
87
throw redirect("/")
98
}

0 commit comments

Comments
 (0)