Skip to content

Commit

Permalink
Merge pull request #5412 from tomhughes/facebook-sharing
Browse files Browse the repository at this point in the history
Pass correct URL to Facebook sharing
  • Loading branch information
gravitystorm authored Dec 18, 2024
2 parents 6094a97 + a73f9a2 commit 918370b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/social_share_button_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def self.generate_share_url(site, params)
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
Expand Down

0 comments on commit 918370b

Please sign in to comment.