@@ -378,11 +378,13 @@ var sendNotificationEmail = function (api, componentInfo, userId, activeForumCat
378
378
}
379
379
380
380
user = result [ 0 ] ;
381
- projectName = componentInfo . project_name + api . helper . getPhaseName ( componentInfo . phase_id ) + ' Contest' ;
381
+ projectName = componentInfo . project_name ;
382
382
documentationDetails = '' ;
383
383
// we need to set up a new environment variable for the web server name specifici to each environment
384
384
//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
+
386
388
reviewURL = process . env . TC_SOFTWARE_SERVER_NAME + '/review' ;
387
389
388
390
if ( componentInfo . phase_id === 112 ) {
@@ -399,9 +401,11 @@ var sendNotificationEmail = function (api, componentInfo, userId, activeForumCat
399
401
if ( challengeType === CHALLENGE_TYPE . DEVELOP ) {
400
402
forumURL = api . config . tcConfig . developForumsUrlPrefix + activeForumCategoryId ;
401
403
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' ;
402
405
} else if ( challengeType === CHALLENGE_TYPE . DESIGN ) {
403
406
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/' ;
405
409
}
406
410
407
411
if ( componentInfo . review_type && componentInfo . review_type == 'PEER' )
0 commit comments