diff --git a/core/Services/CalDAV/Providers/Nextcloud.vala b/core/Services/CalDAV/Providers/Nextcloud.vala
index 8e5083c1c..69f5787cc 100644
--- a/core/Services/CalDAV/Providers/Nextcloud.vala
+++ b/core/Services/CalDAV/Providers/Nextcloud.vala
@@ -281,8 +281,13 @@ public class Services.CalDAV.Providers.Nextcloud : Services.CalDAV.Providers.Bas
if (_uri.get_port () > 0) {
server_url = "%s://%s:%d".printf (_uri.get_scheme (), _uri.get_host (), _uri.get_port ());
}
-
- server_url += _uri.get_path ();
+
+ string path = _uri.get_path ();
+ if (path.has_suffix ("/")) {
+ path = path.substring (0, path.length - 1);
+ }
+
+ server_url += path;
} catch (Error e) {
debug (e.message);
}
diff --git a/data/io.github.alainm23.planify.appdata.xml.in.in b/data/io.github.alainm23.planify.appdata.xml.in.in
index 95a628bbd..59f04e65f 100644
--- a/data/io.github.alainm23.planify.appdata.xml.in.in
+++ b/data/io.github.alainm23.planify.appdata.xml.in.in
@@ -67,6 +67,14 @@
https://www.patreon.com/alainm23
@appid@.desktop
+
+
+
+ - Support for syncing Nextcloud accounts that use a custom subpath (#1398).
+
+
+
+
diff --git a/meson.build b/meson.build
index f0bfcb9ba..7a07b3d51 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project(
'io.github.alainm23.planify',
'vala', 'c',
- version: '4.10.6'
+ version: '4.10.7'
)
gnome = import('gnome')