From 97ce08f5af2b0a324b10682246fc19aaa85d98da Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 25 Nov 2015 11:27:23 -0500 Subject: [PATCH] Removed rel="canonical", closes #3758 On the advice of the following articles: - http://googlewebmastercentral.blogspot.com/2013/04/5-common-mistakes-with-relcanonical.html - https://moz.com/blog/rel-confused-answers-to-your-rel-canonical-questions rel="canonical" should not be shown on the same page as rel="prev" and rel="next" as Google will implicitly assume that they all point to the same page. With the "pageless" variety only showing the first page of posts, it explains exactly why any post content after the first page is not indexed by Google. ... or perhaps it *is* indexed, but not returned. Who the heck knows. :smile: --- src/controllers/topics.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/controllers/topics.js b/src/controllers/topics.js index fd4e6ebc2e..d3cd6140e7 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -238,10 +238,6 @@ topicsController.get = function(req, res, callback) { rel: 'alternate', type: 'application/rss+xml', href: nconf.get('url') + '/topic/' + tid + '.rss' - }, - { - rel: 'canonical', - href: nconf.get('url') + '/topic/' + topicData.slug + (currentPage > 1 ? '?page=' + currentPage : '') } ];