diff --git a/search.html b/search.html index f855a40..471f40d 100644 --- a/search.html +++ b/search.html @@ -14,7 +14,7 @@ function makeZettelLink(zettel) { zettelLink.classList.add("zettel-link"); let actualLink = document.createElement("a"); - actualLink.href = zettel.id + ".html"; + actualLink.href = zettel.id.replaceAll(" ", "_") + ".html"; actualLink.innerHTML = zettel.title; zettelLink.appendChild(actualLink); @@ -95,4 +95,4 @@ $('#search-tags').dropdown({ runSearch(); } }); -