Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix share url can be broken because of extra slash
contributor5b387a0b11c2
diff --git a/apps/client/src/widgets/shared_info.tsx b/apps/client/src/widgets/shared_info.tsxindex d3665478aa..cb98027c25 100644--- a/apps/client/src/widgets/shared_info.tsx+++ b/apps/client/src/widgets/shared_info.tsx@@ -24,7 +24,8 @@ export default function SharedInfo() {const shareId = getShareId(note);if (syncServerHost) {- link = `${syncServerHost}/share/${shareId}`;+ const cleanedServerHost = syncServerHost.replace(/\/$/, "");+ link = `${cleanedServerHost}/share/${shareId}`;} else {let host = location.host;if (host.endsWith("/")) {