Project

General

Profile

Actions

Bug #103520

open

Empty hreflang field in siteconfig yaml

Added by Mordamir 3 months ago. Updated 11 days ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2024-04-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

Following languages key for config.yaml

  -
    title: Deutsch
    enabled: true
    languageId: 0
    base: /
    typo3Language: de
    locale: de_DE.UTF-8
    iso-639-1: de
    navigationTitle: Deutsch
    hreflang: de-DE
    direction: ''
    flag: de
    websiteTitle: ''
    solr_core_read: core_de
  -
    title: English
    enabled: true
    base: /en/
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    websiteTitle: ''
    navigationTitle: ''
    hreflang: ''
    direction: ''
    fallbackType: fallback
    fallbacks: '0'
    flag: en-us-gb
    languageId: 1
    solr_core_read: core_en

In the confguration you see the problem, the hreflang field is empty for english language, so no hreflang tags are generated because only 1 language in with a hreflang field.

The problem behind this is, the missing hreflang entry is shown with a correctly filled placeholder value 'en-US' in the backend of the site configuration. So the configuration error is very hard to spot using only the typo3 backend.

My expectation would be, that if there is a placeholder value, this placeholder value would be used if the field is empty.

What i dont know is if this behaviour still exists on the current version.

Actions #1

Updated by Georg Ringer 11 days ago

  • Status changed from New to Accepted
  • Sprint Focus set to On Location Sprint

the placeholder is just a placeholder, not a fallback.

we are discussing what would be the best way: either making the field required or also doing some checks and place the result in reports or site module

Actions

Also available in: Atom PDF