importing a note now creates internal link relations

This commit is contained in:
zadam
2019-09-01 20:35:55 +02:00
parent 1e50d88166
commit c614bc3263
3 changed files with 25 additions and 3 deletions

View File

@@ -250,7 +250,7 @@ ${content}
if (noteMeta.isClone) {
const targetUrl = getTargetUrl(noteMeta.noteId, noteMeta);
let content = `<p>This is a clone of a note. Go to its <a href="${targetUrl}">primary location</a>.</p>`;
let content = `<p>This is a clone of a note. Go to its <a href="${encodeURIComponent(targetUrl)}">primary location</a>.</p>`;
content = prepareContent(noteMeta.title, content, noteMeta);