A way to not add variantID in the search urls in page results?

Hello,

I have a problem spot by customers. Our variants are not used to be show on our store and they are hidden in the code but for adding “metafield like” info (links, composers, Youtube video urls..).

If we search for a specific SKU it show the good variant, but with a general search term, it shows urls with the unavailable variantID and print unavailable product at 0.0 price.

Example (with an available product but not the variants (variant: stock 0, price 0) and a general term “Pescia”:

https://www.claves.ch/products/robert-schumann-the-complete-works-for-piano-vol-vi-cedric-pescia?_pos=4&_sid=c93749362&_ss=r&variant=36497732238

It should show this url:

https://www.claves.ch/products/robert-schumann-the-complete-works-for-piano-vol-vi-cedric-pescia?_pos=4&_sid=c93749362&_ss=r

This one reach the good product (available and with stock and price) like searching the SKU directly.

Is it a way to not add the variantID in all the search urls results to avoid to change all the way our store works?

Thank you for your help.

Best,