Update returnnextfieldguide to look at dashedName property

This commit is contained in:
terakilobyte
2015-06-06 11:57:53 -04:00
parent a0dcf77a14
commit b210d7226c

View File

@ -87,8 +87,7 @@ exports.returnNextFieldGuide = function(req, res, next) {
}
return res.redirect('../field-guide/how-do-i-use-this-guide');
}
var nameString = fieldGuide.name.toLowerCase().replace(/\s/g, '-');
return res.redirect('../field-guide/' + nameString);
return res.redirect('../field-guide/' + fieldGuide.dashedName);
});
};