diff --git a/app/src/App.tsx b/app/src/App.tsx index d654a7983..8f96264a5 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -16,6 +16,15 @@ import { PageUserAccount } from './PageUserAccount'; export default function App() { useTranslation(); + React.useEffect(() => { + let loc = window.location.href; + + if (loc.includes('www.gcsim.app')) { + loc = loc.replace('www.gcsim.app', 'gcsim.app'); + window.location.href = loc; + } + }, [window.location.href]); + return (