diff --git a/NAPS2.Escl/Client/EsclClient.cs b/NAPS2.Escl/Client/EsclClient.cs index 6402ee5cd7..16a3945607 100644 --- a/NAPS2.Escl/Client/EsclClient.cs +++ b/NAPS2.Escl/Client/EsclClient.cs @@ -101,9 +101,11 @@ public async Task CreateScanJob(EsclScanSettings settings) response.EnsureSuccessStatusCode(); Logger.LogDebug("POST OK"); + var uri = response.Headers.Location!; + return new EsclJob { - UriPath = response.Headers.Location!.AbsolutePath + UriPath = uri.IsAbsoluteUri ? uri.AbsolutePath : uri.OriginalString }; }