Project

General

Profile

Actions

Bug #89484

closed

Use SiteLanguage hreflang for html-tag lang-attribute

Added by David Gurk over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
-
Start date:
2019-10-23
Due date:
% Done:

100%

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

Description

Currently TYPO3 uses the iso-639-1 code for the html-tag lang-attribute like: <html lang="[iso-639-1]">

See:
https://github.com/TYPO3/TYPO3.CMS/blob/9.5/typo3/sysext/frontend/Classes/Http/RequestHandler.php#L294

While Google ignores this attribute, the lang-attribute could and should use the hreflang of the SiteLanguage configuration.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #90641: Setting hreflang to "x-default" break html-lang attributeClosedSimon Gilli2020-03-04

Actions
Actions

Also available in: Atom PDF