#87760Option to remove params from canonical tag
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.