From e93b48bc53c46fab8074c9386a10d9a48585d833 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 14 Aug 2021 20:44:59 +0200 Subject: [PATCH] LibraryItemAPI: Fixing dual / in page responses --- Kyoo/Views/Helper/CrudApi.cs | 2 +- Kyoo/Views/LibraryItemApi.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kyoo/Views/Helper/CrudApi.cs b/Kyoo/Views/Helper/CrudApi.cs index d73e45ea..eba42b1d 100644 --- a/Kyoo/Views/Helper/CrudApi.cs +++ b/Kyoo/Views/Helper/CrudApi.cs @@ -82,7 +82,7 @@ namespace Kyoo.Api protected Page Page(ICollection resources, int limit) where TResult : IResource { - return new Page(resources, + return new Page(resources, new Uri(BaseURL, Request.Path), Request.Query.ToDictionary(x => x.Key, x => x.Value.ToString(), StringComparer.InvariantCultureIgnoreCase), limit); diff --git a/Kyoo/Views/LibraryItemApi.cs b/Kyoo/Views/LibraryItemApi.cs index 3e114fe7..0c801a5c 100644 --- a/Kyoo/Views/LibraryItemApi.cs +++ b/Kyoo/Views/LibraryItemApi.cs @@ -43,7 +43,7 @@ namespace Kyoo.Api new Pagination(limit, afterID)); return new Page(resources, - new Uri(_baseURL + Request.Path), + new Uri(_baseURL, Request.Path), Request.Query.ToDictionary(x => x.Key, x => x.Value.ToString(), StringComparer.InvariantCultureIgnoreCase), limit); }