aboutsummaryrefslogtreecommitdiff
path: root/templates/index.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-07 18:58:05 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-07 18:58:05 +0800
commitbc41933d4f5e8b378ac544d9beaa03b2def925f8 (patch)
treea088e19f01735c5dd4c981c79eadd7246cf73674 /templates/index.tmpl
parenthttp/templates: Add query_escape and path_escape (diff)
downloadforge-bc41933d4f5e8b378ac544d9beaa03b2def925f8.tar.gz
forge-bc41933d4f5e8b378ac544d9beaa03b2def925f8.tar.zst
forge-bc41933d4f5e8b378ac544d9beaa03b2def925f8.zip
index, group: Escape path anchors
Fixes: https://todo.sr.ht/~runxiyu/forge/1
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r--templates/index.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl
index 58aadc1..8d787c9 100644
--- a/templates/index.tmpl
+++ b/templates/index.tmpl
@@ -26,7 +26,7 @@
{{- range .groups }}
<tr>
<td>
- <a href="{{ .Name }}/">{{ .Name }}</a>
+ <a href="{{ .Name | path_escape }}/">{{ .Name }}</a>
</td>
<td>
{{ .Description }}