all repos — website @ ab3dc1160db63a961e4e8d822433bae943b5784e

My website

fix stats logging
Alan Pearce alan@alanpearce.eu
Mon, 22 Jul 2024 07:30:25 +0200
commit

ab3dc1160db63a961e4e8d822433bae943b5784e

parent

3158d019a4b4961ff40b2206770f6f4fd0828cf2

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M templates/page.templtemplates/page.templ
@@ -4,6 +4,7 @@ import ( 	"io/fs"
 
 	"go.alanpearce.eu/website/internal/config"
+	"net/url"
 )
 
 var (
@@ -87,7 +88,7 @@ </html> }
 
 func mkURL(u config.URL, path string, title string) string {
-	q := u.Query()
+	q := url.Values{}
 	q.Add("p", path)
 	q.Add("t", title)
 	u.RawQuery = q.Encode()