diff --git a/backend/src/Designer/TypedHttpClients/Altinn2DelegationMigration/Altinn2DelegationMigrationClient.cs b/backend/src/Designer/TypedHttpClients/Altinn2DelegationMigration/Altinn2DelegationMigrationClient.cs index 4cb91dfa118..0bcda8cd0a6 100644 --- a/backend/src/Designer/TypedHttpClients/Altinn2DelegationMigration/Altinn2DelegationMigrationClient.cs +++ b/backend/src/Designer/TypedHttpClients/Altinn2DelegationMigration/Altinn2DelegationMigrationClient.cs @@ -27,7 +27,7 @@ public async Task GetNumberOfDelegations(string service ? $"{GetResourceRegistryBaseUrl(environment)}" : $"{_platformSettings.ResourceRegistryDefaultBaseUrl}"; - string relativeUrl = $"/resourceregistry/api/v1/altinn2export/delegationcount/?serviceCode={serviceCode}&serviceEditionCode={serviceEditionCode}"; + string relativeUrl = $"/resourceregistry/api/v1/altinn2export/delegationcount/{serviceCode}/{serviceEditionCode}"; Uri uri = new($"{baseUrl}{relativeUrl}"); HttpClientHelper.AddSubscriptionKeys(_httpClient, uri, _platformSettings); using HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, uri);