Skip to content

Build your personal knowledge base with Trilium Notes

fix(setup): trailing slash affects sync (closes #8045)

Elian Doran043e6202312f
diff --git a/apps/client/src/setup.ts b/apps/client/src/setup.ts
index 30232b85a3..67ad3e835d 100644
--- a/apps/client/src/setup.ts
+++ b/apps/client/src/setup.ts
@@ -99,7 +99,7 @@ class SetupController {
}
private async finish() {
- const syncServerHost = this.syncServerHostInput.value.trim();
+ const syncServerHost = this.syncServerHostInput.value.trim().replace(/\/+$/, "");
const syncProxy = this.syncProxyInput.value.trim();
const password = this.passwordInput.value;