From 884521a7ddeee9a92d7fef3043e5aa609b2449c0 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 11 Aug 2025 17:20:33 +0200 Subject: [PATCH] refactor(template): use modern svg directive https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/use https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/xlink:href > Warning: Since SVG 2, the xlink:href attribute is deprecated in favor of href. See xlink:href page for more information. --- internal/template/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/template/functions.go b/internal/template/functions.go index 77c2a7cb..52d1daaf 100644 --- a/internal/template/functions.go +++ b/internal/template/functions.go @@ -86,7 +86,7 @@ func (f *funcMap) Map() template.FuncMap { "theme_color": model.ThemeColor, "icon": func(iconName string) template.HTML { return template.HTML(fmt.Sprintf( - ``, + ``, route.Path(f.router, "appIcon", "filename", "sprite.svg"), iconName, ))