diff --git a/NGitLab/Impl/GroupsClient.cs b/NGitLab/Impl/GroupsClient.cs index 8844f3f4..05a4cbb9 100644 --- a/NGitLab/Impl/GroupsClient.cs +++ b/NGitLab/Impl/GroupsClient.cs @@ -85,7 +85,10 @@ public IEnumerable Search(string search) public IEnumerable SearchProjects(int groupId, string search) { - return _api.Get().GetAll(Utils.AddOrderBy(Url + "/" + groupId + $"/projects?search={Uri.EscapeDataString(search)}")); + var url = Url + "/" + Uri.EscapeDataString(groupId.ToString(CultureInfo.InvariantCulture)) + "/projects"; + url = Utils.AddParameter(url, "search", search); + url = Utils.AddOrderBy(url); + return _api.Get().GetAll(url); } public Group Create(GroupCreate group) => _api.Post().With(group).To(Url);