From: Christian Heller Date: Thu, 20 Feb 2025 15:20:30 +0000 (+0100) Subject: Fix broken tag links in file view. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/copy_free?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=ytplom Fix broken tag links in file view. --- diff --git a/src/templates/file_data.tmpl b/src/templates/file_data.tmpl index 0ea5166..c849541 100644 --- a/src/templates/file_data.tmpl +++ b/src/templates/file_data.tmpl @@ -19,7 +19,7 @@ async function update_file_data() { {% if not allow_edit %}input.disabled = true;{% endif %} input.onclick = send_update; const a = new_child_to("a", new_child_to("td", new_child_to("td", tr))); - a.href = "/{{page_names.files}}?needed_tag={{tag|urlencode}}"; + a.href = `${PATH_FILES}?needed_tag=${encodeURIComponent(tag)}`; a.textContent = tag; }); document.getElementById("added_tag").value = "";