Skip to content

Node.js based forum software built for the modern web

fix(categories): add rel=canonical link tag to home page (#14322)

Julian Lam2dd294c54610
diff --git a/src/controllers/categories.js b/src/controllers/categories.js
index 74cd125f6c..e6046c8fe9 100644
--- a/src/controllers/categories.js
+++ b/src/controllers/categories.js
@@ -65,5 +65,12 @@ categoriesController.list = async function (req, res) {
});
}
+ helpers.addLinkTags({
+ url: 'categories',
+ res: res,
+ tags: [],
+ page: page,
+ });
+
res.render('categories', data);
};