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 };
}
};