Project

General

Profile

Actions

Bug #86569

closed

Respect no_index while creating canonical and hreflang tags

Added by Marc Hirdes about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
SEO
Start date:
2018-10-04
Due date:
% Done:

100%

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

Description

If the meta tag robots is set to noindex, there should be no canonical or hreflang tags linking to this page.

The following code

<meta name="robots" content="noindex,follow"/>
<link rel="alternate" hreflang="en-US" href="https://t3master.ddev.com/"/>
<link rel="alternate" hreflang="x-default" href="https://t3master.ddev.com/"/>

<link rel="canonical" href="https://t3master.ddev.com/"/>

should look like this

<meta name="robots" content="noindex,follow"/>

Furthermore it would be great if the canonical links to an internal page, that there it's also checked, if this page can be indexed. The same with hreflang.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Task #86545: Make canonical and hreflang optionalClosedRichard Haeser2018-10-02

Actions
Actions

Also available in: Atom PDF