diff --git a/frontend/web/components/pages/OrganisationSettingsRedirectPage.tsx b/frontend/web/components/pages/OrganisationSettingsRedirectPage.tsx index 9d96a02a9c49..b074a49100c4 100644 --- a/frontend/web/components/pages/OrganisationSettingsRedirectPage.tsx +++ b/frontend/web/components/pages/OrganisationSettingsRedirectPage.tsx @@ -15,6 +15,8 @@ const OrganisationSettingsRedirectPage: FC< router.history.replace( `/organisation/${AccountStore.getOrganisation().id}/settings`, ) + } else { + router.history.replace('/organisations') } }, []) return ( diff --git a/frontend/web/routes.js b/frontend/web/routes.js index 8b1c506e405b..56b406f80a68 100644 --- a/frontend/web/routes.js +++ b/frontend/web/routes.js @@ -35,7 +35,6 @@ import ProjectsPage from './components/ProjectsPage' import OrganisationSettingsRedirectPage from './components/pages/OrganisationSettingsRedirectPage' import OrganisationUsagePage from './components/pages/OrganisationUsagePage' import OrganisationsPage from './components/pages/OrganisationsPage' -import PageTitle from './components/PageTitle' import UsersAndPermissionsPage from './components/pages/UsersAndPermissionsPage' import ProjectRedirectPage from './components/pages/ProjectRedirectPage'