Task #99908
closedRemove "hreflang" from Site Configuration
100%
Description
This is now a superfluous option
Updated by Benni Mack over 1 year ago
- Related to Task #99905: Remove "iso-639-1" from site configuration added
Updated by Benni Mack over 1 year ago
- Related to Task #99882: Hide "typo3Language" option from site configuration GUI added
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
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
Updated by Benni Mack over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 58592d315a121ce795ebb2a918559d091237a6ef.
Updated by Benni Mack over 1 year ago
- Related to Task #99916: Remove "direction" from site configuration added
Updated by Marc Hirdes over 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?
Updated by Benni Mack over 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?
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?
Updated by Marc Hirdes over 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.
Updated by Benni Mack about 1 year ago
- Related to Task #101160: Keep hreflang property in site configuration added
Updated by Benni Mack 11 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?
Updated by Marc Hirdes 10 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.