Project

General

Profile

Actions

Feature #88242

closed

Make canonical optional

Added by Christoph Hendreich almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2019-04-28
Due date:
% Done:

100%

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

Description

It would be useful to have a TypoScript option which deactivates the generation of the canonical tag or to remove some paramter, like a fixed pagetype.
For example, when using an AMP template using pagetype, AMP output page must have the canonical to the HTML main page.

<link rel="canonical" href="https://www.domain.de/de/page-de/"/>
<link rel="alternate" hreflang="de" href="https://www.domain.de/de/page-de"/>
<link rel="alternate" hreflang="en" href="https://www.domain.de/en/page-en"/>
<link rel="alternate" hreflang="x-default" href="https://www.domain.de/de/page-de/"/>

<link rel="amphtml" href="https://www.domain.de/de/page-de/amp/" />
Alternative with subdomain <link rel="amphtml" href="https://amp.domain.de/de/page-de/" />

https://amp.dev/documentation/examples/guides/internationalization/?format=websites#example-1-canonical-amp
Every AMP document must have a link tag with rel=canonical pointing to its matching canonical desktop document, again, in the same language.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #86545: Make canonical and hreflang optionalClosedRichard Haeser2018-10-02

Actions
Related to TYPO3 Core - Bug #87760: Option to remove params from canonical tagClosed2019-02-21

Actions
Actions

Also available in: Atom PDF