fix and improve Open Graph HTML meta tags #9429
Labels
effort: small
This task is a small effort.
enhancement
Improves an existing feature.
has PR
Issues that already have a PR
p3
We don't have visibility when this will be addressed.
Summary
I was working with og meta tags some time ago and noticed an incorrect value, which I described in more detail in this issue.
As I was investigating this further today, I came across more things that should be adjusted and are not quite correct atm:
og:locale
values, described in the mentioned issuelanguage_TERRITORY
(see Open Graph protocol)fr
for French, but it has to befr_FR
, respecting the protocolog:locale
value is not updated when the language is changed (language switcher menu), and therefore does not match the language of the document (<html lang="[LANGCODE]">
) at the given timeog:locale
gets the language value of the document (which is not the correct value as stated in 1.)og:image
is present,og:image:alt
should also be specified - this is currently not the caseURL
all pages (also translated pages); for example:
Reproduction steps
check the mentioned
og
meta tags in the loaded source (dom)Expected behavior
og:locale
og:image:alt
textActual behavior
incorrect values for the mentioned og meta tags (regarding the protocol)
Device
Laptop
Browser
Chrome
Browser version
Stable
Operating system
Mac OS
Screenshot
No response
Anything else?
No response
Validations
The text was updated successfully, but these errors were encountered: