From 9d781fbefe7babca4d07a5030d4f01d1d765a3dd Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 20 Feb 2025 16:20:30 +0100 Subject: [PATCH] Fix broken tag links in file view. --- src/templates/file_data.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ""; -- 2.30.2