@@ -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