diff --git a/src/lib/markdown/markdown.ts b/src/lib/markdown/markdown.ts index b9af7ed70..50e6917a8 100644 --- a/src/lib/markdown/markdown.ts +++ b/src/lib/markdown/markdown.ts @@ -37,10 +37,10 @@ const storeProvider: Store = { return `${embeddingOrigin}${channelIdToLink(id)}` }, generateUserHref(id) { - return `javascript:openUserModal('${id}')` + return `javascript:openUserModal(${JSON.stringify(id)})` }, generateUserGroupHref(id) { - return `javascript:openGroupModal('${id}')` + return `javascript:openGroupModal(${JSON.stringify(id)})` } }