|
|
@ -201,17 +201,20 @@ topicsController.get = function(req, res, next) {
|
|
|
|
rel: 'alternate',
|
|
|
|
rel: 'alternate',
|
|
|
|
type: 'application/rss+xml',
|
|
|
|
type: 'application/rss+xml',
|
|
|
|
href: nconf.get('url') + '/topic/' + tid + '.rss'
|
|
|
|
href: nconf.get('url') + '/topic/' + tid + '.rss'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
rel: 'up',
|
|
|
|
|
|
|
|
href: nconf.get('url') + '/category/' + topicData.category.slug
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
rel: 'canonical',
|
|
|
|
rel: 'canonical',
|
|
|
|
href: nconf.get('url') + '/topic/' + topicData.slug
|
|
|
|
href: nconf.get('url') + '/topic/' + topicData.slug
|
|
|
|
}
|
|
|
|
}
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (topicData.category) {
|
|
|
|
|
|
|
|
res.locals.linkTags.push({
|
|
|
|
|
|
|
|
rel: 'up',
|
|
|
|
|
|
|
|
href: nconf.get('url') + '/category/' + topicData.category.slug
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
next(null, topicData);
|
|
|
|
next(null, topicData);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
], function (err, data) {
|
|
|
|
], function (err, data) {
|
|
|
|