Skip to content

Node.js based forum software built for the modern web

closes #1668

Barış Soner Uşaklıf9899881789f
diff --git a/src/controllers/topics.js b/src/controllers/topics.js
index d560fbcb2a..347ae8e847 100644
--- a/src/controllers/topics.js
+++ b/src/controllers/topics.js
@@ -293,6 +293,10 @@ function addTags(topicData, req, res) {
type: 'application/rss+xml',
href: topicData.rssFeedUrl,
},
+ {
+ rel: 'canonical',
+ href: nconf.get('url') + '/topic/' + topicData.slug,
+ },
];
if (topicData.category) {