refactor: remove utm_source from share simulation link

pull/2899/head
Marie Destandau 2024-02-09 12:22:22 +01:00 committed by Johan Girod
parent 17b747443c
commit 38217757d5
2 changed files with 1 additions and 5 deletions

View File

@ -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 | number>(
null

View File

@ -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()
}