SEO problem: Filter in collection pages creates it's own URL - how to fix this?

Hello,

I need some help regarding my filters and the way it sorts things out. My shop creates a new URL for every filter and this causes a huge mess in terms of URL

I sell wines and for example:

Moreover, once I click on any of these products after filtering or searching on the search bar, it comes up with some random numbers at the back.

For example, this is the product

And this is the product after I click on it using the filters

I read online saying that these sort of URL are not SEO friendly and I do need some help or suggestions on this.

Thank you.

@rt12820 There is no mess in your URL or with your store! Every ecommerce platform works like this if you opened a product listing page and if you add some filters, variants or other attributes then how to identify and show your filtered results without passing parameters ? so by adding parameters in the back of the URL tell the path which products want to show with the filter criteria.

Second thing, it is created by user for showing filter result it is not impacting in SEO or Search Engine and it won’t indexed in search engine because it is not permanent URL it is created automatically when someone trigger or play with filter so no need to worry!