Update chat link, fix 404 for ziplines and basejumps
parent
081a76d0d6
commit
3078fa8104
|
@ -147,7 +147,7 @@ exports.returnCurrentChallenge = function(req, res, next) {
|
|||
exports.returnIndividualChallenge = function(req, res, next) {
|
||||
var dashedName = req.params.challengeName;
|
||||
|
||||
var challengeName = /^(bonfire|waypoint)/.test(dashedName) ? dashedName
|
||||
var challengeName = /^(bonfire|waypoint|zipline|basejump)/.test(dashedName) ? dashedName
|
||||
.replace(/\-/g, ' ')
|
||||
.split(' ')
|
||||
.slice(1)
|
||||
|
|
|
@ -23,7 +23,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
|
|||
a(href='/chat', target='_blank') Chat
|
||||
else
|
||||
li
|
||||
a(href='/challenges/join-our-chat-room') Chat
|
||||
a(href='/challenges/waypoint-join-our-chat-room') Chat
|
||||
li
|
||||
a(href='/news') News
|
||||
li
|
||||
|
|
Loading…
Reference in New Issue