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

lower cased #504

Merged
merged 1 commit into from
Oct 29, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/filters/challengeLinks.filter.js
Original file line number Diff line number Diff line change
@@ -23,18 +23,18 @@
} else {
var data = {
domain: CONSTANTS.domain,
track: challenge.track,
track: challenge.track.toLowerCase(),
forumId: challenge.forumId,
id: challenge.id
};
switch (type) {
case 'forums':
switch (challenge.track) {
case 'DEVELOP':
case 'develop':
return String.supplant('https://apps.{domain}/forums/?module=Category&categoryID={forumId}', data);
case 'DATA':
case 'data':
return String.supplant('https://apps.{domain}/forums/?module=Category&categoryID={forumId}', data);
case 'DESIGN':
case 'design':
return String.supplant('https://apps.{domain}/forums/?module=ThreadList&forumId={forumId}', data);
}