From c2b29ff4c469e754357a4c985bcf7c083317994d Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 15 Oct 2015 16:20:21 -0400 Subject: [PATCH] add page to canonical link #3758 --- src/controllers/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/topics.js b/src/controllers/topics.js index 7f386c5af8..af62540ff6 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -236,7 +236,7 @@ topicsController.get = function(req, res, callback) { }, { rel: 'canonical', - href: nconf.get('url') + '/topic/' + topicData.slug + href: nconf.get('url') + '/topic/' + topicData.slug + (currentPage > 1 ? '?page=' + currentPage : '') } ];