Project

General

Profile

Actions

Task #99908

closed

Remove "hreflang" from Site Configuration

Added by Benni Mack over 1 year ago. Updated 9 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2023-02-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

This is now a superfluous option


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Task #99905: Remove "iso-639-1" from site configurationClosedBenni Mack2023-02-09

Actions
Related to TYPO3 Core - Task #99882: Hide "typo3Language" option from site configuration GUIClosedBenni Mack2023-02-08

Actions
Related to TYPO3 Core - Task #99916: Remove "direction" from site configurationClosedBenni Mack2023-02-10

Actions
Related to TYPO3 Core - Task #101160: Keep hreflang property in site configurationClosedBenni Mack2023-06-23

Actions
Actions #1

Updated by Benni Mack over 1 year ago

  • Related to Task #99905: Remove "iso-639-1" from site configuration added
Actions #2

Updated by Benni Mack over 1 year ago

  • Related to Task #99882: Hide "typo3Language" option from site configuration GUI added
Actions #3

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77807

Actions #4

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77807

Actions #5

Updated by Benni Mack over 1 year ago

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

Updated by Benni Mack over 1 year ago

  • Related to Task #99916: Remove "direction" from site configuration added
Actions #7

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions #8

Updated by Marc Hirdes about 1 year ago

Just to be sure:

When I set the locale to de_DE.utf-8 - the hreflang would be "de-DE". Before this change I could set the hreflang to "de".

But to have a hreflang with "de-DE" instead of just "de" would mean that this is a specific page for Germany, not for all german users. Or am I wrong?

https://developers.google.com/search/docs/specialty/international/localized-versions?hl=en#language-codes

Actions #9

Updated by Benni Mack about 1 year ago

Marc Hirdes wrote in #note-8:

Just to be sure:

When I set the locale to de_DE.utf-8 - the hreflang would be "de-DE". Before this change I could set the hreflang to "de".

But to have a hreflang with "de-DE" instead of just "de" would mean that this is a specific page for Germany, not for all german users. Or am I wrong?

https://developers.google.com/search/docs/specialty/international/localized-versions?hl=en#language-codes

Hi Marc,

by default it is set to the locale that was entered ("de-de" when set to "de_DE.UTF-8"), if you override it you can still set "hreflang" yourself in the config.yaml but not in the UI anymore.

Any better idea on how to optimize this for SEO purposes?

Actions #10

Updated by Marc Hirdes about 1 year ago

Hi Benni,

Thanks for your reply. It is good to know that it is still possible to overwrite it. I would like to keep that option.

On the other hand, for the automated solution it would be better to look at all translations. If there is another locale with the same prefix, like de_DE and de_AT, then the hreflang should keep the country code, so de-DE and de-AT. Otherwise, if there is only one locale with the de_ prefix, just show de in the hreflang.

But even with de_DE and de_AT a better solution might be to have de and de-AT in the hreflang. So it depends and it should still be possible to overwrite it.

Actions #11

Updated by Benni Mack about 1 year ago

  • Related to Task #101160: Keep hreflang property in site configuration added
Actions #12

Updated by Benni Mack 9 months ago

Hey Marc,

so, I agree. It should be as "least specific as possible" for the hreflang entries, but if we have multiple ones, we should get more specific. Can you reopen a new ticket for this issue?

Actions #13

Updated by Marc Hirdes 9 months ago

Hi Benni,

sry if don't get it, but for what should I open a new ticket? I can live with the changes in #101160.

Actions #14

Updated by Benni Mack 9 months ago

Marc Hirdes wrote in #note-13:

Hi Benni,

sry if don't get it, but for what should I open a new ticket? I can live with the changes in #101160.

Hey Marc,

I was referring to the automatically detection of "de-DE" vs. "de" if there is only one language / region combination for a language.

Actions

Also available in: Atom PDF