From 5a3a627fcd4512e4ed064d3eeb0a607cb8f6e298 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 29 Sep 2015 20:30:42 -0400 Subject: [PATCH] fix rel tag urls --- src/controllers/categories.js | 1 + src/controllers/topics.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/controllers/categories.js b/src/controllers/categories.js index ce1edc0532..2a045dc533 100644 --- a/src/controllers/categories.js +++ b/src/controllers/categories.js @@ -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); }); diff --git a/src/controllers/topics.js b/src/controllers/topics.js index c4abfcbfbf..7632d26c5d 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -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); });