Clean up set the input algorithm now all URLs have a query