No need in URL escaping since these links are safe already, so just cast them to SafeURL.
This commit is contained in:
parent
0a55b115fb
commit
c49c5b0112
@ -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—2024 Alexander "Arav" Andreev <<a href="mailto:me@arav.su">me@arav.su</a>> <a href={ templ.URL(utils.MainSite(r.Host) + "/privacy") }>Privacy statements</a>
|
||||
2017—2024 Alexander "Arav" Andreev <<a href="mailto:me@arav.su">me@arav.su</a>> <a href={ templ.SafeURL(utils.MainSite(r.Host) + "/privacy") }>Privacy statements</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user