Variant in URL (example.io/egg/?variant=3949494949) - how to prevent the redirect?

Hello, I have products with 4 variants each,

example:

example.io/egg/?variant=39494949491 (1 pack)

example.io/egg/?variant=37364648489 (3 pack)

example.io/egg/?variant=487475787589 (6 pack)

example.io/egg/?variant=99388838292 (12 pack)

When I land on:

example.io/egg/

There is eventually a JavaScript redirect to:

example.io/egg/?variant=39494949491

Our SEO agency advises against this and suggests we make it work without the redirect.

Is there any way to do this? and keep variant deep-linking working. I don’t have any issue with the other variants being accesible via the links:

example.io/egg/?variant=37364648489 (3 pack)

example.io/egg/?variant=487475787589 (6 pack)

example.io/egg/?variant=99388838292 (12 pack)

But I just don’t want any “JavaScript redirect” to occur.

Is this core shopify functionality? Or I can override this behaviour?

Hi, @sdevscotland

I can see my development store works well without redirect.

It might depends on your theme. what theme are you using?

Can you share your store URl and let me have a check? Thanks