Project

General

Profile

Actions

Bug #86009

closed

html-tag is without lang- and dir-attribute using site-configuration

Added by Wittkiel Gruppe about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
Start date:
Due date:
% Done:

100%

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

Description

With current master for 9.4 the <html>-tag is without lang- and dir-attribute, also meta-language-tag is missing. We commented out our TypoScript-language-config and expected that all attributes and tags are automatically created/changed on a basis of new site-configuration like described here https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.2/Feature-84581-SiteHandling.html

current:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
[...]

expected:

<!DOCTYPE html>
<html lang="de" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="language" content="de">
[...]

Our config:
/typo3conf/sites/main-site/config.yaml

site:
  rootPageId: 1
  base: /
  languages:
    -
      languageId: '0'
      title: Deutsch
      navigationTitle: Deutsch
      base: /
      locale: de_DE.UTF-8
      iso-639-1: de
      hreflang: de-DE
      direction: ltr
      typo3Language: de
      flag: de
      enabled: true
  errorHandling: {  }

setup.typoscript

page = PAGE
#page.meta.language = de

config {
    #absRefPrefix = /
    #sys_language_uid = 0
    #language = de
    #locale_all = de_DE.UTF-8
    #htmlTag_langKey = de
    #htmlTag_dir = ltr
}

Non composer based!
TYPO3: 9.4.0-dev (current master)
PHP: 7.2.5
MariaDB: 10.0
Ubuntu 16.04


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #85849: Make frontend/Tests/Unit/Page notice freeClosed2018-08-14

Actions
Actions #1

Updated by Benjamin Robinson about 6 years ago

I had the same issue (in 9.3.3) and found out that it works like expected if the site-configuration's entry point is set to the real domain (https://www.mydomain/) instead of just "/".
Of course it should also be working with "/".

Actions #2

Updated by Wittkiel Gruppe about 6 years ago

Ben Robinson wrote:

I had the same issue (in 9.3.3) and found out that it works like expected if the site-configuration's entry point is set to the real domain (https://www.mydomain/) instead of just "/".
Of course it should also be working with "/".

With something like "https://www.mydomain/" it's not working too for me with master. I think there are some general problems, because the domain-base is also missing for frontend-links whatever base/entry point i set.

Actions #3

Updated by Benni Mack about 6 years ago

  • Related to Task #85849: Make frontend/Tests/Unit/Page notice free added
Actions #4

Updated by Gerrit Code Review about 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58075

Actions #5

Updated by Gerrit Code Review about 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58075

Actions #6

Updated by Benni Mack about 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF