home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
347ed6b
)
Fix broken tag links in file view.
master
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 20 Feb 2025 15:20:30 +0000
(16:20 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 20 Feb 2025 15:20:30 +0000
(16:20 +0100)
src/templates/file_data.tmpl
patch
|
blob
|
history
diff --git
a/src/templates/file_data.tmpl
b/src/templates/file_data.tmpl
index 0ea51668ebf12be62b5436fe6bd795220859cf19..c8495413cb0a655dcf196acdbf2bc6a186c26c3a 100644
(file)
--- 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 = "";