Bug #86009
closedhtml-tag is without lang- and dir-attribute using site-configuration
100%
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
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 "/".
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.
Updated by Benni Mack about 6 years ago
- Related to Task #85849: Make frontend/Tests/Unit/Page notice free added
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
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
Updated by Benni Mack about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7af7815365d0178aa48159b34eded3e95c63259b.