Trim the query params from url.