Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 7dc3b08

Browse files
authored
Merge pull request #481 from appirio-tech/challenge-reg-email-patch-1
correct submission links in registration email
2 parents ffd24cc + 496a28e commit 7dc3b08

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

actions/challengeRegistration.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,13 @@ var sendNotificationEmail = function (api, componentInfo, userId, activeForumCat
378378
}
379379

380380
user = result[0];
381-
projectName = componentInfo.project_name + api.helper.getPhaseName(componentInfo.phase_id) + ' Contest';
381+
projectName = componentInfo.project_name;
382382
documentationDetails = '';
383383
// we need to set up a new environment variable for the web server name specifici to each environment
384384
//submitURL = process.env.TC_ACTIVATION_SERVER_NAME + '/challenge-details/' + challengeId + '/submit/';
385-
submitURL = 'https://www.topcoder.com/challenge-details/' + challengeId + '/submit/';
385+
// Set the default submission URL.
386+
submitURL = process.env.TC_ACTIVATION_SERVER_NAME + '/challenges/' + challengeId + '/submit/file/';
387+
386388
reviewURL = process.env.TC_SOFTWARE_SERVER_NAME + '/review';
387389

388390
if (componentInfo.phase_id === 112) {
@@ -399,9 +401,11 @@ var sendNotificationEmail = function (api, componentInfo, userId, activeForumCat
399401
if (challengeType === CHALLENGE_TYPE.DEVELOP) {
400402
forumURL = api.config.tcConfig.developForumsUrlPrefix + activeForumCategoryId;
401403
reviewURL = process.env.TC_SOFTWARE_SERVER_NAME + '/review/actions/ViewProjectDetails?pid=' + challengeId;
404+
submitURL = process.env.TC_ACTIVATION_SERVER_NAME + '/challenge-details/' + challengeId + '/submit/?type=develop';
402405
} else if (challengeType === CHALLENGE_TYPE.DESIGN) {
403406
forumURL = api.config.tcConfig.studioForumsUrlPrefix + activeForumCategoryId;
404-
submitURL = process.env.TC_STUDIO_SERVER_NAME + '/?module=ViewContestDetails&ct=' + challengeId;
407+
//submitURL = process.env.TC_STUDIO_SERVER_NAME + '/?module=ViewContestDetails&ct=' + challengeId;
408+
submitURL = process.env.TC_ACTIVATION_SERVER_NAME + '/challenges/' + challengeId + '/submit/file/';
405409
}
406410

407411
if (componentInfo.review_type && componentInfo.review_type == 'PEER')

0 commit comments

Comments
 (0)