Project

General

Profile

Actions

Feature #88842

closed

Use Meta Tag Manager to create generate canonical tag

Added by Jarvis H over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Won't have this time
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2019-07-25
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The recently added canonical tag is generated manually via TYPO3\CMS\Seo\Canonical\CanonicalGenerator as a simple string which is added to additionalHeaderData of TSFE.

I believe it would make sense to refactor this to use the Meta Tag Manager api introduced in Typo3 9.3: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.3/Feature-81464-AddAPIForMetaTagManagement.html

This way the canonical Tag could also be easily overwritten via Typoscript or directly in fx. a news detail-view via a simple viewhelper.

Any thoughts?

Actions #1

Updated by Richard Haeser over 4 years ago

  • Status changed from New to Rejected
  • Priority changed from Should have to Won't have this time

The canonical tag is not a meta tag, but a link tag. It is not using <meta /> but <link rel="canonical" />. If we will add this to the MetaTagAPI, we need to include all kind of elements that might be entered within the <head /> tag. As this is not the responsibility of such a manager. So adding this to the MetaTag API won't make sense. If you would like to have enhancements, please create a ticket for that.

For now, I will close this request.

Actions

Also available in: Atom PDF