@ -1,5 +1,6 @@
'use strict';
var nconf = require('nconf');
var helpers = {};
@ -234,8 +234,7 @@ Controllers.outgoing = function(req, res, next) {
if (url) {
res.render('outgoing', data);
} else {
res.status(404);
res.redirect(nconf.get('relative_path') + '/404');
res.status(404).redirect(nconf.get('relative_path') + '/404');
}
};
@ -28,7 +28,7 @@ tagsController.getTag = function(req, res, next) {
res.locals.metaTags = [
{
name: "title",
name: 'title',
content: tag
},
@ -36,7 +36,7 @@ tagsController.getTag = function(req, res, next) {
property: "og:url",
property: 'og:url',
content: nconf.get('url') + '/tags/' + tag
];