diff --git a/config/default.js b/config/default.js index b11adb6..fd5040d 100644 --- a/config/default.js +++ b/config/default.js @@ -6,5 +6,8 @@ module.exports = { "https://platform.topcoder-dev.com/challenges-app/topcoder-micro-frontends-challenges-app.js", "@topcoder/micro-frontends-gigs-app": "https://platform.topcoder-dev.com/gigs-app/topcoder-micro-frontends-gigs-app.js", + }, + URL: { + BASE: "https://www.topcoder-dev.com", } }; diff --git a/config/prod.js b/config/prod.js index 9cd7cfa..31de6ac 100644 --- a/config/prod.js +++ b/config/prod.js @@ -2,5 +2,8 @@ module.exports = { MFE_CONFIG: { '@topcoder/micro-frontends-challenges-app': 'https://platform.topcoder.com/challenges-app/topcoder-micro-frontends-challenges-app.js', '@topcoder/micro-frontends-gigs-app': 'https://platform.topcoder.com/gigs-app/topcoder-micro-frontends-gigs-app.js', + }, + URL: { + BASE: "https://www.topcoder.com", } }; diff --git a/src/components/Menu/index.jsx b/src/components/Menu/index.jsx index 7e37f2e..b631099 100644 --- a/src/components/Menu/index.jsx +++ b/src/components/Menu/index.jsx @@ -34,6 +34,9 @@ const Menu = ({ menu, selected, onSelect, isLoggedIn, onUpdateMenu }) => { const onSelectMenuItem = (name, path) => { selectionRef.current.select(name); + if (name == "Gigs") { + window.location.href = `${process.env.URL.BASE}/gigs`; + } if (path) { navigate(path); } diff --git a/src/constants/index.js b/src/constants/index.js index 72c8acf..6af6add 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -20,7 +20,7 @@ export const NAV_MENU = { children: [ { name: "Gigs", - path: "/earn/gigs", + path: "", }, { name: "Challenges",
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: