diff --git a/static/index.js b/static/index.js index a13bf62..2d7b1aa 100644 --- a/static/index.js +++ b/static/index.js @@ -29,7 +29,7 @@ function renderItems() { clone.querySelector(".content").textContent = item.content; clone.querySelector(".note").textContent = item.note; clone.querySelector(".result").id = `item-${id}`; - clone.querySelector("a").href = `form.html?id=${id}`; + clone.querySelector("a").href = `form.html?id=${encodeURIComponent(id)}`; if (item.hidden) { clone.querySelector(".result").classList.add('hidden') };