Include the query in the url