set the query to nil of no query parameters to present ? in url