fix rel tag urls

This commit is contained in:
barisusakli
2015-09-29 20:30:42 -04:00
parent 93dc3c2c34
commit 5a3a627fcd
2 changed files with 2 additions and 0 deletions

View File

@@ -263,6 +263,7 @@ topicsController.get = function(req, res, callback) {
data.rssFeedUrl = nconf.get('relative_path') + '/topic/' + data.tid + '.rss';
data.pagination = pagination.create(data.currentPage, data.pageCount);
data.pagination.rel.forEach(function(rel) {
rel.href = nconf.get('url') + '/topic/' + data.slug + rel.href;
res.locals.linkTags.push(rel);
});