From 38217757d5050f21e3d007816f2b3bd929594500 Mon Sep 17 00:00:00 2001 From: Marie Destandau Date: Fri, 9 Feb 2024 12:22:22 +0100 Subject: [PATCH] refactor: remove utm_source from share simulation link --- site/source/components/Feedback/FeedbackForm.tsx | 4 +--- site/source/components/ShareSimulationBanner/index.tsx | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/site/source/components/Feedback/FeedbackForm.tsx b/site/source/components/Feedback/FeedbackForm.tsx index aa47ba41a..5a2b40bcb 100644 --- a/site/source/components/Feedback/FeedbackForm.tsx +++ b/site/source/components/Feedback/FeedbackForm.tsx @@ -103,9 +103,7 @@ export default function FeedbackForm({ additionalData?: string }) { const url = useUrl() - const urlParams = Array.from(new URL(url).searchParams.entries()).filter( - ([key]) => key !== 'utm_source' - ) + const urlParams = Array.from(new URL(url).searchParams.entries()) const [share, setShare] = useState(false) const [requestStatusCode, setRequestStatusCode] = useState( null diff --git a/site/source/components/ShareSimulationBanner/index.tsx b/site/source/components/ShareSimulationBanner/index.tsx index ab6c7ec94..524c81db3 100644 --- a/site/source/components/ShareSimulationBanner/index.tsx +++ b/site/source/components/ShareSimulationBanner/index.tsx @@ -37,8 +37,6 @@ export function useUrl() { ? import.meta.env.VITE_FR_BASE_URL : import.meta.env.VITE_EN_BASE_URL - searchParams.set('utm_source', 'sharing') - return siteUrl + path + '?' + searchParams.toString() }