Merge pull request #5412 from tomhughes/facebook-sharing
Pass correct URL to Facebook sharing
This commit is contained in:
commit
918370b7a8
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ module SocialShareButtonHelper
|
|||
when :linkedin
|
||||
"https://www.linkedin.com/sharing/share-offsite/?url=#{URI.encode_www_form_component(params[:url])}"
|
||||
when :facebook
|
||||
"https://www.facebook.com/sharer/sharer.php?u=#{URI.encode_www_form_component('params[:url]')}&t=#{URI.encode_www_form_component(params[:title])}"
|
||||
"https://www.facebook.com/sharer/sharer.php?u=#{URI.encode_www_form_component(params[:url])}&t=#{URI.encode_www_form_component(params[:title])}"
|
||||
when :mastodon
|
||||
"https://mastodonshare.com/?text=#{URI.encode_www_form_component(params[:title])}&url=#{URI.encode_www_form_component(params[:url])}"
|
||||
when :telegram
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue