There is a dynamic parameter in urls s=changingtext. It is necessary to recognize this parameter and add another parameter to it for redirecting to get s=changingtext&post_type=product.
There is a link for example
example.com/?min_price=0&max_price=0&s=test
it should always redirect to
example.com/?min_price=0&max_price=0&s=test&post_type=product