TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #89484
Issue Bug Closed

#89484Use SiteLanguage hreflang for html-tag lang-attribute

David Gurk 10/23/19, 10:11 updated 12/23/19, 22:43

Open in Forge Comment in Forge

Description

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

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.

Reviews 2

  • 9.5 62062[BUGFIX] Use Hreflang for HTML tag Resolves this issue Merged Richard Haeser CR +2 V +2 → main Easy +1 −1 10/23/19, 13:54
  • main 62081[BUGFIX] Use Hreflang for HTML tag Resolves this issue Merged Simon Gilli CR +2 V +2 → 9.5 Easy +1 −1 10/23/19, 12:49

Related issues 1

  • Bug #90641Setting hreflang to "x-default" break html-lang attribute Related to Closed SEO v9 David Gurk 03/04/20, 17:35
Assigned to
Simon Gilli
Author
David Gurk
Priority
Should have
Category
Frontend
TYPO3 version
9
Complexity
easy
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback