Project

General

Profile

Actions

Bug #103642

closed

Alternate hreflang x-default

Added by Mark Weisgerber 7 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
SEO
Start date:
2024-04-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.3
Tags:
x-default
Complexity:
Is Regression:
Sprint Focus:

Description

The meta tag "x-default" can currently only be changed by manually adjusting the order in the language array of the sites.yaml file. It is not possible to change the order in the backend.
The good news is that by changing the order, the correct x-default value is actually used in the frontend. In my case languageId: 2

languages:
  - languageId: 2
    enabled: true
    title: Englisch
    websiteTitle: fellow.dog
    base: 'https://www.fellow.dog/'
    locale: en_US.utf8
    navigationTitle: English
    direction: ''
    fallbackType: strict
    fallbacks: ''
    flag: en-us-gb
    deeplTargetLanguage: EN-US
  - languageId: 0
    enabled: true
    title: Deutsch
    base: 'https://www.darf-ich-mit.de/'
    locale: de_DE.utf8
    navigationTitle: Deutsch
    direction: ''
    flag: de
    websiteTitle: ''
    deeplTargetLanguage: DE

But now to the problem. Due to the change, my languageId 0 (German) is hidden in the backend when I want to edit pages. (see screenshot)
I have come across the problem with the x-default several times now, both privately and professionally, and would very much like to be able to adjust the x-default value in the sites config

The use of the EXT:cs_seo extension offers this feature, but only halfway, because the URLs for RouteEnhancers are not resolved. Therefore their feature is unfortunately unusable


Files

2024-04-16 19_04_50-Window.png (96.3 KB) 2024-04-16 19_04_50-Window.png Mark Weisgerber, 2024-04-16 18:28
Actions

Also available in: Atom PDF