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%7B%20web_path%20%7D%7D/static/%7B%7Bprefix%7D%7D/process_descriptions?a=commitdiff_plain;h=9d781fbefe7babca4d07a5030d4f01d1d765a3dd;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 = "";