Bug #87760

Option to remove params from canonical tag

Added by Patrick Fiedorowicz about 1 month ago. Updated 23 days ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2019-02-21
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have a page with news plugin and pagination.
Each pagination url and also the canonical tag looks like:
- example.com/news/2/
- example.com/news/3/
- example.com/news/.../

Currently there is no possibility to remove the tx_news_pi1[@widget_0][currentPage] param from the canonical tag.

I've tested the behaviour with and without RouteEnhancers, no changes.

The CanonicalGenerator uses a function "getParamsToExcludeForCanonicalizedUrl" in "TYPO3\CMS\Frontend\Utility\CanonicalizationUtility" to determine which params should be removed from the canonical tag.
But at the moment this only removes params wich should be ignored for chash calculation - but this is no solution for pagination widget.

History

#1 Updated by Richard Haeser 23 days ago

  • Status changed from New to Needs Feedback

Why do you want to remove the page parameter? Paginated pages shouldn’t have a canocial to the first page and that is what happens when you remove the parameter.

See https://yoast.com/pagination-seo-best-practices/ for more information

#2 Updated by Patrick Fiedorowicz 23 days ago

Richard Haeser wrote:

Why do you want to remove the page parameter? Paginated pages shouldn’t have a canocial to the first page and that is what happens when you remove the parameter.

You are right, Google said that the canonical tag should also include paginated pages.
But most seo tools complain about duplicate titles of the news list and paginated pages. So I would prefer to remove them from canonical tag.

But I can give you another example:
If you use news with categories (article can be related to multiple categories) and use them for filtering, you have to remove the category parameter from canonical tag to prevent duplicate content.

Also available in: Atom PDF