diff --git a/app/javascript/legacy/nonprofits/donate/followup-step.js b/app/javascript/legacy/nonprofits/donate/followup-step.js index f1bd69d5f..f20ef5565 100644 --- a/app/javascript/legacy/nonprofits/donate/followup-step.js +++ b/app/javascript/legacy/nonprofits/donate/followup-step.js @@ -14,7 +14,7 @@ function view(state) { h('a.button--small.facebook.u-width--full.share-button', { props: { target: '_blank' - , href: 'https://www.facebook.com/dialog/feed?app_id='+app.facebook_app_id +"&display=popup&caption=" + encodeURIComponent(app.campaign.name || app.nonprofit.name) + "&link="+window.location.href + , href: 'https://www.facebook.com/dialog/feed?app_id='+app.facebook_app_id +"&display=popup&caption=" + encodeURIComponent(app.campaign.name || app.nonprofit.name) + "&link="+window.location.href } }, [h('i.fa.fa-facebook-square'), ` ${I18n.t('nonprofits.donate.followup.share.facebook')}`] ) ]) diff --git a/app/views/components/_twitter_link.html.erb b/app/views/components/_twitter_link.html.erb index c3b7d92da..2f7c28a67 100644 --- a/app/views/components/_twitter_link.html.erb +++ b/app/views/components/_twitter_link.html.erb @@ -1,3 +1,3 @@ <%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later # Full license explanation at https://github.com/houdiniproject/houdini/blob/main/LICENSE -%> -https://twitter.com/intent/tweet?url=<%= request.base_url + request.fullpath %>&via=CommitChange&text=<%= text %> +https://twitter.com/intent/tweet?url=<%= request.base_url + request.fullpath %>&utm_source=twitter&utm_medium=social&via=CommitChange&text=<%= text %> \ No newline at end of file