From 174994cdab80abcdb5ef4a8f9df978bd10e36a86 Mon Sep 17 00:00:00 2001 From: quilicicf Date: Wed, 22 Nov 2023 14:59:44 +0100 Subject: [PATCH] Fix nextcloud settings for endpoint without trailing / (#525) --- src/components/settings/services/nextcloud.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/settings/services/nextcloud.tsx b/src/components/settings/services/nextcloud.tsx index b8fbe25..b46f5a8 100644 --- a/src/components/settings/services/nextcloud.tsx +++ b/src/components/settings/services/nextcloud.tsx @@ -92,7 +92,7 @@ class NextcloudConfigsTab extends React.Component< } else { configs = { type: SyncService.Nextcloud, - endpoint: this.state.endpoint + "index.php/apps/news/api/v1-3", + endpoint: this.state.endpoint.replace(/\/$/, "") + "/index.php/apps/news/api/v1-3", username: this.state.username, password: this.state.password, fetchLimit: this.state.fetchLimit,