Fix the way the search URL is built