diff --git a/src/client/routes/__root.tsx b/src/client/routes/__root.tsx index 3ca7970..7f8eed4 100644 --- a/src/client/routes/__root.tsx +++ b/src/client/routes/__root.tsx @@ -126,13 +126,16 @@ function RootLayout() { const currentThreadId = threadMatch ? Number(threadMatch.threadId) : null; // Allow public routes through without auth + const searchParams = new URLSearchParams(location.search); const isPublicRoute = location.pathname === "/" || location.pathname.startsWith("/users/") || location.pathname.startsWith("/global-items") || location.pathname === "/setups" || location.pathname.startsWith("/setups/") || - location.pathname === "/login"; + location.pathname === "/login" || + (location.pathname.startsWith("/items/") && + (searchParams.has("setup") || searchParams.has("share"))); // FAB visibility: show on all authenticated, non-public routes const isSetupsPage = !!matchRoute({ to: "/setups", fuzzy: true });