Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/auth/protected-route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export default function ProtectedRoute({ children }: ProtectedRouteProps) {
setIsChecking(false);
} else {
// Only redirect if we're not already on the auth page
if (!pathname.includes('/auth')) {
if (!pathname.includes('/auth/login')) {
console.log('Not authenticated - redirecting to auth');
// Use replace: false to allow back button to work properly
router.push("/auth");
router.push("/auth/login");
}
setIsChecking(false);
}
Expand Down
Loading