• Home
  • Get help
  • Ask a question
Last post 46 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67862
All time tickets 10487
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#790 – OG language tag doesn't match tag from System - Language Code plugin

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 03 August 2015 00:15 UTC
gijs007
 Dear Sir/Madam,

I've noticed a small issue with the OG language tag(og:locale) set by sh404sef.
It appears that sh404sef gets the language tag from the language pack/installed content language and use this for the OG meta tag.

It's better to use the language tag set in the System - Language Code plugin, since this overrides the language tag that is set by Joomla.

A case for this would be when I have a English site, but I want it to be targeted world wide, instead of only for the UK.
Then the hreflang tag of "en-GB" is overridden by the System - Language Code plugin to be just "en", but this doesn't happen for the OG meta tag, which still outputs "en-GB". This could possibly confuse search engines/facebook that use the OG meta data.

I hope this can be improved.

Best Regards,

Gijs van der Velden
Monday, 03 August 2015 08:36 UTC
wb_weeblr
Hi

Facebook doesn't accept 2-letters language codes, using "en" would be an invalid OGP tag.

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.