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) {
|
exports.returnIndividualChallenge = function(req, res, next) {
|
||||||
var dashedName = req.params.challengeName;
|
var dashedName = req.params.challengeName;
|
||||||
|
|
||||||
var challengeName = /^(bonfire|waypoint)/.test(dashedName) ? dashedName
|
var challengeName = /^(bonfire|waypoint|zipline|basejump)/.test(dashedName) ? dashedName
|
||||||
.replace(/\-/g, ' ')
|
.replace(/\-/g, ' ')
|
||||||
.split(' ')
|
.split(' ')
|
||||||
.slice(1)
|
.slice(1)
|
||||||
|
|
|
@ -23,7 +23,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
|
||||||
a(href='/chat', target='_blank') Chat
|
a(href='/chat', target='_blank') Chat
|
||||||
else
|
else
|
||||||
li
|
li
|
||||||
a(href='/challenges/join-our-chat-room') Chat
|
a(href='/challenges/waypoint-join-our-chat-room') Chat
|
||||||
li
|
li
|
||||||
a(href='/news') News
|
a(href='/news') News
|
||||||
li
|
li
|
||||||
|
|
Loading…
Reference in New Issue