diff --git a/SharpbinV3.Client/src/lib/components/Navbar.svelte b/SharpbinV3.Client/src/lib/components/Navbar.svelte index 0cae604..4769a80 100644 --- a/SharpbinV3.Client/src/lib/components/Navbar.svelte +++ b/SharpbinV3.Client/src/lib/components/Navbar.svelte @@ -20,7 +20,7 @@ : ''; -
+
Sharpbin {#if $user} diff --git a/SharpbinV3.Client/src/routes/+layout.server.ts b/SharpbinV3.Client/src/routes/+layout.server.ts index 8286c63..c171438 100644 --- a/SharpbinV3.Client/src/routes/+layout.server.ts +++ b/SharpbinV3.Client/src/routes/+layout.server.ts @@ -1,11 +1,11 @@ import type { LayoutServerLoad } from './$types'; -export const load: LayoutServerLoad = async ({ fetch }) => { +export const load: LayoutServerLoad = async ({ fetch, url }) => { try { const res = await fetch('/api/auth/info'); const options = await res.json(); - return { options }; + return { options , url: url.href }; } catch { - return { options: null }; + return { options: null, url: url.href }; } };