kpumuk / meta-tags

Search Engine Optimization (SEO) for Ruby on Rails applications.
MIT License
2.73k stars 275 forks source link

Default Open Graph metatags are not merged but overridden. #10

Closed eirc closed 12 years ago

eirc commented 13 years ago

So you got in your layout:

<%= display_meta_tags :site => 'Site Name',
                      :open_graph => { :site_name => 'Site Name' } %>

And in some action:

<%- set_meta_tags :title => 'Page Title',
                  :open_graph  => { :title => 'Page Title' } %>

This results in:

<title>Site Name | Page Title</title>
<meta content="Page Title" property="og:title" />

That is we lost this one:

<meta content="Site Name" property="og:site_name" />
omarvelous commented 12 years ago

Concur. Experiencing the same issue.

kpumuk commented 12 years ago

Fixed in master