if there are no more query string parameters, remove the ?