From f9899881789f71cdcd667c840c708a8ff19149eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 22 Sep 2017 10:26:03 -0400 Subject: [PATCH] closes #1668 --- src/controllers/topics.js | 4 ++++ 1 file changed, 4 insertions(+) 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) {