Closed brentdodell closed 7 years ago
having this issue too, did you manage to get a work around going?
:+1:
any forks with this solved already?
I wrote monky patch for this issue. Add this to config/initializers/meta_tags.rb
module MetaTags
class Renderer
def render_title(tags)
site = meta_tags.extract(:site) || ''
title = meta_tags.extract_title || []
separator = meta_tags.extract_separator
reverse = meta_tags.extract(:reverse) === true
normalized_meta_tags[:site] = site
normalized_meta_tags[:title] = TextNormalizer.normalize_title('', title, separator, reverse)
site_title = TextNormalizer.normalize_title(site, title, separator, reverse)
normalized_meta_tags[:site_title] = site_title
tags << ContentTag.new(:title, content: site_title) if site_title.present?
end
end
end
normalized_meta_tags
is a hash which is referred by symbol like :title
.
Unfortunately extract_full_title
removes title
from hash and keeps it to nowhere, I didn't use the function.
I have the following:
Which results in the following HTML:
As far as the
og:
tags are concerned, they should be the following:I believe it is a bug that
og:title
is:title | :site
. According to Open Graph's Basic tags, there should be separateog:site_name
andog:title
tags. Also, on that same page it mentionsfb:app_id
as one of the basic Open Graph tags. I believe this gem has issues with that as well (see issue #118).Thanks for a great gem overall!