From 7ff1230b300e3e2bbe2b8d105cf0a29043edcae4 Mon Sep 17 00:00:00 2001 From: rashmi73 Date: Wed, 17 Mar 2021 02:48:44 +0530 Subject: [PATCH 1/2] issue 5433 fix --- config/default.js | 1 + config/production.js | 1 + src/shared/components/Settings/Preferences/index.jsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/default.js b/config/default.js index ec2de811b4..3fe013f902 100644 --- a/config/default.js +++ b/config/default.js @@ -111,6 +111,7 @@ module.exports = { BLOG_FEED: 'https://www.topcoder.com/blog/feed/', COMMUNITY: 'https://community.topcoder-dev.com', FORUMS: 'https://apps.topcoder-dev.com/forums', + DISCUSSION_FORUM: 'https://discussions.topcoder.com', FORUMS_VANILLA: 'https://vanilla.topcoder-dev.com', HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles', SUBMISSION_REVIEW: 'https://submission-review.topcoder-dev.com', diff --git a/config/production.js b/config/production.js index f83da0fbc1..f48acfd915 100644 --- a/config/production.js +++ b/config/production.js @@ -31,6 +31,7 @@ module.exports = { HOME: '/my-dashboard', COMMUNITY: 'https://community.topcoder.com', FORUMS: 'https://apps.topcoder.com/forums', + DISCUSSION_FORUM: 'https://discussions.topcoder.com', FORUMS_VANILLA: 'https://discussions.topcoder.com', HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles', SUBMISSION_REVIEW: 'https://submission-review.topcoder.com', diff --git a/src/shared/components/Settings/Preferences/index.jsx b/src/shared/components/Settings/Preferences/index.jsx index 5db18e1be9..72fd95024b 100644 --- a/src/shared/components/Settings/Preferences/index.jsx +++ b/src/shared/components/Settings/Preferences/index.jsx @@ -88,7 +88,7 @@ export default class Preferences extends React.Component { case 'e-mail': return ; case 'forum': - return (window.location.href = `${config.URL.FORUMS}/?module=Settings`) && ; + return (window.location.href = `${config.URL.DISCUSSION_FORUM}/profile/preferences`) && ; case 'payment': return (window.location.href = `${config.URL.COMMUNITY}/tc?module=EditPaymentPreferences`) && ; default: From f0cc8b0fe63acd3fbab902e5cbe72c69e119ca46 Mon Sep 17 00:00:00 2001 From: rashmi73 Date: Wed, 31 Mar 2021 12:15:28 +0530 Subject: [PATCH 2/2] issue 5433 feedback --- config/default.js | 1 - config/production.js | 1 - src/shared/components/Settings/Preferences/index.jsx | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config/default.js b/config/default.js index 3fe013f902..ec2de811b4 100644 --- a/config/default.js +++ b/config/default.js @@ -111,7 +111,6 @@ module.exports = { BLOG_FEED: 'https://www.topcoder.com/blog/feed/', COMMUNITY: 'https://community.topcoder-dev.com', FORUMS: 'https://apps.topcoder-dev.com/forums', - DISCUSSION_FORUM: 'https://discussions.topcoder.com', FORUMS_VANILLA: 'https://vanilla.topcoder-dev.com', HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles', SUBMISSION_REVIEW: 'https://submission-review.topcoder-dev.com', diff --git a/config/production.js b/config/production.js index f48acfd915..f83da0fbc1 100644 --- a/config/production.js +++ b/config/production.js @@ -31,7 +31,6 @@ module.exports = { HOME: '/my-dashboard', COMMUNITY: 'https://community.topcoder.com', FORUMS: 'https://apps.topcoder.com/forums', - DISCUSSION_FORUM: 'https://discussions.topcoder.com', FORUMS_VANILLA: 'https://discussions.topcoder.com', HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles', SUBMISSION_REVIEW: 'https://submission-review.topcoder.com', diff --git a/src/shared/components/Settings/Preferences/index.jsx b/src/shared/components/Settings/Preferences/index.jsx index 72fd95024b..ed7c3456d7 100644 --- a/src/shared/components/Settings/Preferences/index.jsx +++ b/src/shared/components/Settings/Preferences/index.jsx @@ -88,7 +88,7 @@ export default class Preferences extends React.Component { case 'e-mail': return ; case 'forum': - return (window.location.href = `${config.URL.DISCUSSION_FORUM}/profile/preferences`) && ; + return (window.location.href = `${config.URL.FORUMS_VANILLA}/profile/preferences`) && ; case 'payment': return (window.location.href = `${config.URL.COMMUNITY}/tc?module=EditPaymentPreferences`) && ; default: