Skip to content

Modern Docker Management, Designed for Everyone

fix: sidebar shows on logon

Kyle Mendell6f14c050c899
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 94048dcc0..5c9a62a19 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -25,7 +25,15 @@
const isNavigating = $derived(navigating.type !== null);
const isOnboardingPage = $derived(String(page.url.pathname).startsWith('/onboarding'));
- const isLoginPage = $derived(page.url.pathname.startsWith('/auth/login'));
+ const isLoginPage = $derived(
+ String(page.url.pathname) === '/login' ||
+ String(page.url.pathname).startsWith('/auth/login') ||
+ String(page.url.pathname) === '/auth' ||
+ String(page.url.pathname).includes('/login') ||
+ String(page.url.pathname).includes('/callback')
+ );
+
+ // const isLoginPage = $derived(page.url.pathname.startsWith('/auth/login'));
const redirectPath = getAuthRedirectPath(page.url.pathname, user, settings);
console.log(page.url.pathname);