fix URLs with query string parameters