add page to canonical link #3758

v1.18.x
barisusakli 9 years ago
parent 2f5eb248eb
commit c2b29ff4c4

@ -236,7 +236,7 @@ topicsController.get = function(req, res, callback) {
}, },
{ {
rel: 'canonical', rel: 'canonical',
href: nconf.get('url') + '/topic/' + topicData.slug href: nconf.get('url') + '/topic/' + topicData.slug + (currentPage > 1 ? '?page=' + currentPage : '')
} }
]; ];

Loading…
Cancel
Save