We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b381eb commit 5d8b45cCopy full SHA for 5d8b45c
modules/caddyhttp/fileserver/browse.html
@@ -21,7 +21,7 @@
21
</svg>
22
{{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic" ".svg"}}
23
{{- if eq .Tpl.Layout "grid"}}
24
- <img loading="lazy" src="{{html .Name}}">
+ <img loading="lazy" src="{{.Name | replace "#" "%23" | replace "?" "%3f" | html}}">
25
{{- else}}
26
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
27
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
0 commit comments