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

@@ -256,6 +256,7 @@ categoriesController.get = function(req, res, callback) {
data.pagination = pagination.create(data.currentPage, data.pageCount);
data.title = data.name;
data.pagination.rel.forEach(function(rel) {
rel.href = nconf.get('url') + '/category/' + data.slug + rel.href;
res.locals.linkTags.push(rel);
});