fix image display with slash in title, closes #3591

This commit is contained in:
zadam 2023-02-10 10:23:02 +01:00
parent adf222b5e8
commit fc7da015fe

View File

@ -90,7 +90,7 @@ class ImageTypeWidget extends TypeWidget {
} }
async doRefresh(note) { async doRefresh(note) {
this.$imageView.prop("src", `api/images/${note.noteId}/${note.title}`); this.$imageView.prop("src", `api/images/${note.noteId}/${encodeURIComponent(note.title)}`);
} }
copyImageReferenceToClipboardEvent({ntxId}) { copyImageReferenceToClipboardEvent({ntxId}) {