fixed / anchor

This commit is contained in:
ston1th 2022-10-10 18:34:48 +02:00
commit 0c1708e450

View file

@ -118,7 +118,9 @@ func (r *responseInterceptor) GetPaths(path string, filesystem *fs.FS, relative
}
dc.Base = path
path = strings.TrimSuffix(path, "/")
pa = "#" + anchor(path)
if path != "/" && path != "" {
pa = "#" + anchor(path)
}
for _, p := range dc.AllPaths {
p = xmldecode(p)
name := template.HTML(p)