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

Commit 093f916

Browse files
authored
Update challengeRegistration.js
1 parent e4d0836 commit 093f916

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

actions/challengeRegistration.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ var sendNotificationEmail = function (api, componentInfo, userId, activeForumCat
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/challenges/' + challengeId + '/submit/file/';
385+
// Set the default submission URL.
386+
submitURL = process.env.TC_ACTIVATION_SERVER_NAME + '/challenges/' + challengeId + '/submit/file/';
386387

387388
reviewURL = process.env.TC_SOFTWARE_SERVER_NAME + '/review';
388389

@@ -400,9 +401,11 @@ var sendNotificationEmail = function (api, componentInfo, userId, activeForumCat
400401
if (challengeType === CHALLENGE_TYPE.DEVELOP) {
401402
forumURL = api.config.tcConfig.developForumsUrlPrefix + activeForumCategoryId;
402403
reviewURL = process.env.TC_SOFTWARE_SERVER_NAME + '/review/actions/ViewProjectDetails?pid=' + challengeId;
404+
submitURL = process.env.TC_ACTIVATION_SERVER_NAME + '/challenges/' + challengeId + '/submit/file/';
403405
} else if (challengeType === CHALLENGE_TYPE.DESIGN) {
404406
forumURL = api.config.tcConfig.studioForumsUrlPrefix + activeForumCategoryId;
405-
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 + '/challenge-details/' + challengeId + '/submit/?type=develop';
406409
}
407410

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

0 commit comments

Comments
 (0)