Skip to content

Node.js based forum software built for the modern web

closes https://github.com/NodeBB/NodeBB/issues/1668

psychobunnyeeabae5738d1
diff --git a/src/controllers/topics.js b/src/controllers/topics.js
index 9fce84d994..dce634ebff 100644
--- a/src/controllers/topics.js
+++ b/src/controllers/topics.js
@@ -153,6 +153,10 @@ topicsController.get = function(req, res, next) {
{
rel: 'up',
href: nconf.get('url') + '/category/' + topicData.category.slug
+ },
+ {
+ rel: 'canonical',
+ href: nconf.get('url') + '/topic/' + topicData.slug
}
];