Skip to content

Commit

Permalink
chore: add additional checks for product url params for pdp
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyagabriel committed Nov 8, 2024
1 parent b26d33d commit 7c6bf4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/($locale).products.$handle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export async function loader({params, context, request}: LoaderFunctionArgs) {

// set selected options from the query string
searchParams.forEach((value, name) => {
if (name === 'variant') return;
if (name === 'variant' || name === 'srsltid' || name.startsWith('utm_'))
return;
selectedOptions.push({name, value});
});

Expand Down

0 comments on commit 7c6bf4b

Please sign in to comment.