diff --git a/packages/commonwealth/client/scripts/views/SublayoutHeader.tsx b/packages/commonwealth/client/scripts/views/SublayoutHeader.tsx index f9d780b1f62..3602de7b75c 100644 --- a/packages/commonwealth/client/scripts/views/SublayoutHeader.tsx +++ b/packages/commonwealth/client/scripts/views/SublayoutHeader.tsx @@ -76,7 +76,11 @@ export const SublayoutHeader = ({ onMobile }: SublayoutHeaderProps) => { if (app.isCustomDomain()) { navigate('/', {}, null); } else { - navigate('/dashboard/for-you', {}, null); + if (isLoggedIn) { + navigate('/dashboard/for-you', {}, null); + } else { + navigate('/dashboard/global', {}, null); + } } }} /> @@ -184,7 +188,11 @@ export const SublayoutHeader = ({ onMobile }: SublayoutHeaderProps) => { if (app.isCustomDomain()) { navigate('/', {}, null); } else { - navigate('/dashboard/for-you', {}, null); + if (isLoggedIn) { + navigate('/dashboard/for-you', {}, null); + } else { + navigate('/dashboard/global', {}, null); + } } }} />