diff --git a/apps/client/src/widgets/shared_info.tsx b/apps/client/src/widgets/shared_info.tsx index d3665478a..cb98027c2 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("/")) {