Fix minor bugs

This commit is contained in:
Nathan Leniz
2015-03-07 03:55:59 +09:00
parent be32cd51b8
commit 89dd38cbac
4 changed files with 4 additions and 97 deletions

View File

@@ -76,7 +76,7 @@ exports.returnIndividualStory = function(req, res, next) {
}
story = story.pop();
var dashedNameFull = story.headline.toLowerCase().replace(/\s/g, '-');
var dashedNameFull = story.storyLink.toLowerCase().replace(/\s/g, '-');
if (dashedNameFull !== dashedName) {
return res.redirect('../stories/' + dashedNameFull);
}