URL encode item ID in edit link
This commit is contained in:
parent
c5613e96b7
commit
c2133771eb
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue