Skip to content

Commit

Permalink
Merge pull request #26 from harvard-canvas-branding/bugfix/course_sel…
Browse files Browse the repository at this point in the history
…ection_redirect_tool_url_fix

course selection redirect fixed for prod
  • Loading branch information
elliottyates authored Aug 19, 2016
2 parents 407ef89 + 69b8031 commit ac48adb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
File renamed without changes.
8 changes: 7 additions & 1 deletion js/shop.js.hold → js/shop.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
var huCourseSelection = (function (){
var currentEnvironment='prod';
var courseSelectionToolSubdomainByEnvironment = {
dev: '.dev',
qa: '.qa',
stage: '.stage',
prod: ''
};
var devProspectiveEnrolleeRoleId = '11';
var prospectiveEnrolleeRoleIdByEnvironment = {
dev: devProspectiveEnrolleeRoleId,
Expand Down Expand Up @@ -30,7 +36,7 @@ var huCourseSelection = (function (){
prod: ['68']
};

var courseSelectionToolUrl = 'https://icommons-tools.' + currentEnvironment + '.tlt.harvard.edu/course_selection/';
var courseSelectionToolUrl = 'https://icommons-tools' + courseSelectionToolSubdomainByEnvironment[currentEnvironment] + '.tlt.harvard.edu/course_selection/';
var prospectiveEnrolleeRoleId = prospectiveEnrolleeRoleIdByEnvironment[currentEnvironment];
var enrolledStudentRoleIds = enrolledStudentRoleIdsByEnvironment[currentEnvironment];
var allowed_terms = allowedTermsByEnvironment[currentEnvironment];
Expand Down

0 comments on commit ac48adb

Please sign in to comment.