Skip to content

Node.js based forum software built for the modern web

fix rel tag urls

barisusakli5a3a627fcd45
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);
});