1
0

No need in URL escaping since these links are safe already, so just cast them to SafeURL.

This commit is contained in:
Alexander Andreev 2024-05-10 02:48:47 +04:00
parent 0a55b115fb
commit c49c5b0112
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -35,7 +35,7 @@ templ Index(curSong *radio.Song, sl []radio.Song, slLen int64, lstnrs *radio.Lis
<text y="11">Welcome to my sacred place, wanderer</text>
</svg>
<nav>
<a href={ templ.URL(utils.MainSite(r.Host)) }>Back to home</a>
<a href={ templ.SafeURL(utils.MainSite(r.Host)) }>Back to home</a>
<h1>Radio</h1>
</nav>
</header>
@ -104,7 +104,7 @@ if sl != nil && len(sl) != 0 {
</section>
}
<footer>
2017&mdash;2024 Alexander &quot;Arav&quot; Andreev &lt;<a href="mailto:me@arav.su">me@arav.su</a>&gt; <a href={ templ.URL(utils.MainSite(r.Host) + "/privacy") }>Privacy statements</a>
2017&mdash;2024 Alexander &quot;Arav&quot; Andreev &lt;<a href="mailto:me@arav.su">me@arav.su</a>&gt; <a href={ templ.SafeURL(utils.MainSite(r.Host) + "/privacy") }>Privacy statements</a>
</footer>
</body>
</html>