A personal media tracker built on the AT Protocol opnshelf.xyz
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: fix redirect to /shelf

+7 -3
+6 -1
apps/web/src/routes/login.tsx
··· 49 49 50 50 useEffect(() => { 51 51 if (user && !isAuthLoading) { 52 - navigate({ to: redirect || "/shelf" }); 52 + if (redirect) { 53 + navigate({ to: redirect }); 54 + return; 55 + } 56 + 57 + navigate({ to: "/" }); 53 58 } 54 59 }, [user, isAuthLoading, navigate, redirect]); 55 60
+1 -2
apps/web/src/routes/profile.index.tsx
··· 3 3 import { createFileRoute, redirect } from "@tanstack/react-router"; 4 4 import { AuthLoadingState } from "@/components/AuthLoadingState"; 5 5 import { UnauthenticatedState } from "@/components/UnauthenticatedState"; 6 - import { getProfileRoute } from "@/lib/profile-routes"; 7 6 import { getSsrAuthHeaders } from "@/lib/ssr-auth-headers"; 8 7 9 8 export const Route = createFileRoute("/profile/")({ ··· 19 18 20 19 if (user) { 21 20 throw redirect({ 22 - ...getProfileRoute(user.handle, "shelf", { page: 1 }), 21 + to: "/", 23 22 }); 24 23 } 25 24 },