Skip to content

Commit a804ed1

Browse files
author
Joel Taylor
committed
Merge pull request #258 from codeschool/fix_404
Fix 404
2 parents c16c7c2 + 14103f2 commit a804ed1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

server/routes/news.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ router.
231231
}
232232

233233
Articles.findBySlug(req.params.slug, function(flow) {
234-
Comments.findByArticleId(flow[0].id, function(comments) {
235-
if (flow.length > 0){
234+
if (flow.length > 0){
235+
Comments.findByArticleId(flow[0].id, function(comments) {
236236
res.render('news/show', { flow: flow[0], comments: comments, user: user, token: req.csrfToken(), moment: moment, pluralize: pluralize });
237-
}else{
237+
});
238+
}else{
238239
res.render('404');
239-
}
240-
});
240+
}
241241
});
242242
}).
243243

server/views/404.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ block content
77

88
section.row.errorHero
99

10-
include /public/images/img-404-hero.svg
10+
include /../public/images/img-404-hero.svg
1111

1212
.cell.well.well--l.well--m--xl.tac.tci
1313

0 commit comments

Comments
 (0)