Skip to content

Commit 082c11f

Browse files
authored
Merge pull request #45 from topcoder-platform/issue-43
fix: issue #43
2 parents 7dea31c + 07e3209 commit 082c11f

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

config/dev.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
* as a more verbose name for the param. */
2727
COMMUNITY_APP: "https://community-app.topcoder-dev.com",
2828

29+
PLATFORM_WEBSITE: "https://platform.topcoder-dev.com",
2930
ARENA: "https://arena.topcoder-dev.com",
3031
AUTH: "https://accounts-auth0.topcoder-dev.com",
3132
BASE: "https://www.topcoder-dev.com",

config/prod.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
* as a more verbose name for the param. */
2424
COMMUNITY_APP: "https://community-app.topcoder.com",
2525

26+
PLATFORM_WEBSITE: "https://platform.topcoder.com",
2627
AUTH: "https://accounts-auth0.topcoder.com",
2728
BASE: "https://www.topcoder.com",
2829
HOME: "/my-dashboard",

src/components/challenge-detail/Registrants/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export default class Registrants extends React.Component {
419419
<div styleName="col-3">
420420
<span role="cell">
421421
<a
422-
href={`${config.URL.BASE}/members/${r.memberHandle}`}
422+
href={`${config.URL.PLATFORM_WEBSITE}/profile/${r.memberHandle}`}
423423
styleName={
424424
isDesign
425425
? ""

src/components/challenge-detail/Submissions/SubmissionRow/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function SubmissionRow({
8787
{rating || "-"}
8888
</span>
8989
<a
90-
href={`${config.URL.BASE}/members/${member}`}
90+
href={`${config.URL.PLATFORM_WEBSITE}/profile/${member}`}
9191
target={`${_.includes(window.origin, "www") ? "_self" : "_blank"}`}
9292
rel="noopener noreferrer"
9393
styleName={`col level-${getRatingLevel(rating)}`}

src/components/challenge-detail/Submissions/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class SubmissionsComponent extends React.Component {
328328
{`#${s.id}`}
329329
</a>
330330
<a
331-
href={`${config.URL.BASE}/members/${_.get(
331+
href={`${config.URL.PLATFORM_WEBSITE}/profile/${_.get(
332332
s.registrant,
333333
"memberHandle",
334334
""
@@ -696,7 +696,7 @@ class SubmissionsComponent extends React.Component {
696696
)}
697697
<div styleName="col-3">
698698
<a
699-
href={`${config.URL.BASE}/members/${_.get(
699+
href={`${config.URL.PLATFORM_WEBSITE}/profile/${_.get(
700700
s.registrant,
701701
"memberHandle",
702702
""

src/components/challenge-detail/Winners/Winner/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function Winner({
6666
<Avatar theme={{ avatar: style.avatar }} url={avatarUrl} />
6767
<div>
6868
<a
69-
href={`${config.URL.BASE}/members/${winner.handle}`}
69+
href={`${config.URL.PLATFORM_WEBSITE}/profile/${winner.handle}`}
7070
styleName="handle"
7171
target={`${_.includes(windowOrigin, "www") ? "_self" : "_blank"}`}
7272
>

0 commit comments

Comments
 (0)