diff --git a/Clients/IrdLibraryClient/IrdClient.cs b/Clients/IrdLibraryClient/IrdClient.cs index 32ac2cf1..fa67770b 100644 --- a/Clients/IrdLibraryClient/IrdClient.cs +++ b/Clients/IrdLibraryClient/IrdClient.cs @@ -125,6 +125,11 @@ public async Task> DownloadAsync(string productCode, string localCache } } - public static string GetDownloadLink(string relativeLink) => Uri.EscapeUriString(new Uri(BaseDownloadUri, relativeLink).ToString()); + public static string GetDownloadLink(string relativeLink) + { + var encodedLink = Uri.EscapeDataString(relativeLink); + var fullUri = new Uri(BaseDownloadUri, encodedLink); + return fullUri.AbsoluteUri; + } } }