add page to canonical link #3758

This commit is contained in:
barisusakli
2015-10-15 16:20:21 -04:00
parent 2f5eb248eb
commit c2b29ff4c4

View File

@@ -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 : '')
}
];