diff --git a/config/default.js b/config/default.js index 6127fe6263..011f5c5395 100644 --- a/config/default.js +++ b/config/default.js @@ -142,6 +142,7 @@ module.exports = { STUDIO: 'https://studio.topcoder-dev.com', TCO: 'https://www.topcoder.com/tco', TCO17: 'https://tco17.topcoder.com/', + TCO19: 'https://community-app.topcoder-dev.com/__community__/tco19', TOPGEAR: 'https://dev-topgear.wipro.com', diff --git a/config/production.js b/config/production.js index f8c8e7ccae..bb24579130 100644 --- a/config/production.js +++ b/config/production.js @@ -41,6 +41,7 @@ module.exports = { /* Connector URL of the TC accounts App. */ ACCOUNTS_APP_CONNECTOR: 'https://accounts-auth0.topcoder.com/', TCO17: 'https://tco17.topcoder.com/', + TCO19: 'https://tco19.topcoder.com/', TOPGEAR: 'https://topgear-app.wipro.com', diff --git a/src/shared/components/tc-communities/Header/index.jsx b/src/shared/components/tc-communities/Header/index.jsx index c610f947e6..6c8b6b9fb2 100644 --- a/src/shared/components/tc-communities/Header/index.jsx +++ b/src/shared/components/tc-communities/Header/index.jsx @@ -81,7 +81,7 @@ function Header(props) { icon: , // TODO: In addition to hitting ${AUTH_URL}/logout, which logs out // from the accounts-app, we should wipe out auth cookies! - link: `${AUTH_URL}/logout?retUrl=${logoutRedirect}`, + link: `${AUTH_URL}?logout=true&retUrl=${encodeURIComponent(logoutRedirect)}`, title: 'Log Out', }], }; diff --git a/src/shared/routes/Communities/TCO19/Routes.jsx b/src/shared/routes/Communities/TCO19/Routes.jsx index 612e1f5de0..cff52d9c4b 100644 --- a/src/shared/routes/Communities/TCO19/Routes.jsx +++ b/src/shared/routes/Communities/TCO19/Routes.jsx @@ -15,6 +15,7 @@ import { HeroImageLoader } from 'components/Contentful/BlogPost'; import ContentfulRoute from 'components/Contentful/Route'; import Profile from 'routes/Profile'; import ProfileStats from 'routes/ProfileStats'; +import { config } from 'topcoder-react-utils'; import headerTheme from 'components/tc-communities/communities/tco19/themes/header.scss'; @@ -28,6 +29,7 @@ export default function TCO19({ base, meta }) { baseUrl={base} pageId={match.params.pageId || 'home'} theme={headerTheme} + logoutRedirect={config.URL.TCO19} />