How to Edit the URLs from Search & Discovery filters?

I want to have my results for customers filtered by color in order to display the correct items to them when they are browsing the store.

Under search I have a menu for people to click to choose a color.

This is the search part of the URL:

https://domain.com/search?sort_by=relevance&q=black

Then when I filter by color it looks like this:

https://domain.com/search?sort_by=relevance&q=black&filter.v.m.custom.variant_base_color=gid%3A%2F%2Fshopify%2FMetaobject%2F226334867686&filter.v.price.gte=&filter.v.price.lte=

Shopify doesn’t have a fix right now, so I thought I would put it out there for the public. Does anyone have a solution?