Fixes an issue with canonical urls for sharing conference#show with Facebook and other social media sites

This commit is contained in:
Sherri Mitchell 2016-09-15 20:42:00 -04:00
parent 5cdf397b2f
commit b1f4d7c66e
2 changed files with 7 additions and 6 deletions

View file

@ -1,9 +1,10 @@
- content_for :head do
%meta{ :property => 'og:title', :content => @conference.title }
%meta{ :property => 'og:image', :content => @conference.picture_url }
%meta{ :property => 'og:url', :content => conference_path(@conference.short_title) }
%meta{ :property => 'og:description', :content => @conference.description}
%meta{ :property => 'og:site_name', :content => (ENV['OSEM_NAME'] || 'OSEM') }
%meta{ :property => "og:title", :content => @conference.title }
%meta{ :property => "og:site_name", :content => (ENV['OSEM_NAME'] || 'OSEM') }
- @conference[:picture]
%meta{property: "og:image:secure_url", content: @conference.picture_url}
%meta{ :property => "og:description", :content => @conference.description }
%meta{ :property => "og:url", :content => @conference.short_title }
= content_for :title do
= @conference.title