diff --git a/components/dashboard/src/App.tsx b/components/dashboard/src/App.tsx index b9bff9632e954a..e9a301d73a5206 100644 --- a/components/dashboard/src/App.tsx +++ b/components/dashboard/src/App.tsx @@ -79,7 +79,13 @@ function App() { } window.removeEventListener('storage', updateTheme); } - }, [localStorage.theme]); + }, []); + + if ((window.location.hostname === 'gitpod.io' || window.location.hostname === 'gitpod-staging.com' || window.location.hostname.endsWith('gitpod-dev.com')) + && window.location.pathname === '/' && window.location.hash === '' && !loading && !user) { + window.location.href = `https://www.gitpod.io`; + return
; + } if (loading) { return