mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
closes #67
This commit is contained in:
@@ -196,6 +196,11 @@ var express = require('express'),
|
||||
|
||||
var category_url = cid + (req.params.slug ? '/' + req.params.slug : '');
|
||||
categories.getCategoryById(cid, 0, function(returnData) {
|
||||
if(!returnData) {
|
||||
res.redirect('404');
|
||||
return;
|
||||
}
|
||||
|
||||
res.send(
|
||||
app.build_header(res) +
|
||||
'\n\t<noscript>\n' + templates['noscript/header'] + templates['noscript/category'].parse(returnData) + '\n\t</noscript>' +
|
||||
|
||||
Reference in New Issue
Block a user