From 70c80c2ba9336407c413560390c3e47ba8ca8917 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Fri, 22 Nov 2024 00:19:33 +0000 Subject: [PATCH] Make share button component automagically add utm tags --- app/components/share_button_component.html.erb | 4 ++-- app/components/share_button_component.rb | 13 +++++++++++++ .../applications/_thanks_for_commenting.html.erb | 10 +++------- app/views/applications/show.html.erb | 10 +++------- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/app/components/share_button_component.html.erb b/app/components/share_button_component.html.erb index ca68e3c2c..3e8e30530 100644 --- a/app/components/share_button_component.html.erb +++ b/app/components/share_button_component.html.erb @@ -7,7 +7,7 @@ x-bind:class="{'invisible': false}" x-data="{ copied: false, - shareData: {url: '<%= j(@url) %>', title: '<%= j(@title) %>'} + shareData: {url: '<%= j(url_with_tracking) %>', title: '<%= j(@title) %>'} }">