Topic-icon OpenGraph overrides

Active Subscriptions:

None
11 years 1 week ago - 11 years 1 week ago #32796 by mtk
OpenGraph overrides was created by mtk
Hey,
Here are 2 bugs I've found with the OG overrides:
  1. in the OG settings, it says Default tags to be used on page *if* more specific tags are not created by Open Graph plugins or {SCOpenGraph ..} tags..
    in fact, the opposite happens. if a global OG override is set for title/description the specific tag {SCOpenGraph ..} does not work - for images it does (!).
  2. if " is used in {SCOpenGraph ..} for title/descriotions, the equivalent
    og:title/og:description values are shown with ' (single instead of double quote).
Last edit: 11 years 1 week ago by mtk.
The topic has been locked.
Support Specialist
11 years 1 week ago #32804 by alzander
Replied by alzander on topic OpenGraph overrides
We'll have to look into the Title/Description 'default' always being used. That definitely shouldn't be the case. In general though, I wouldn't recommend using a default for those values. In most/all cases, the title and description from your component (in the meta data) should be better and what JFBConnect will automatically use. If there are a few specific pages where the meta data isn't right, that's a good time to use the {SCOpenGraph title=xyz} tag.

We will be looking into why that happens though. I don't have a great answer off-hand.

If " is used in {SCOpenGraph ..} for title/descriotions, the equivalent
og:title/og:description values are shown with ' (single instead of double quote).

That's intentional. We convert double-quotes to single-quotes. The reason is that the delimiter for standard HTML tags is the double-quote, so it shouldn't be used in the tag itself. At one point, we were converting that into the ASCII equivalent, so it should work, but optimization plugins, templates, and other things users had were converting it back to a standard double-quote. That broke the whole head section of sites and cause bigger problems.

If you want, we can point you to where we switch the quote type, but it's a change you'd need to make in this and future releases to have it continue working that way.

Hope that helps,
Alex
The topic has been locked.