about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-07-22 07:30:25 +0200
committerAlan Pearce2024-07-22 07:30:52 +0200
commitab3dc1160db63a961e4e8d822433bae943b5784e (patch)
tree741b79abe4dbb5ccf9f4e43bf4ea88a9e414a727
parent3158d019a4b4961ff40b2206770f6f4fd0828cf2 (diff)
downloadwebsite-ab3dc1160db63a961e4e8d822433bae943b5784e.tar.lz
website-ab3dc1160db63a961e4e8d822433bae943b5784e.tar.zst
website-ab3dc1160db63a961e4e8d822433bae943b5784e.zip
fix stats logging
-rw-r--r--templates/page.templ3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/page.templ b/templates/page.templ
index fb91b23..980f827 100644
--- a/templates/page.templ
+++ b/templates/page.templ
@@ -4,6 +4,7 @@ import (
 	"io/fs"
 
 	"go.alanpearce.eu/website/internal/config"
+	"net/url"
 )
 
 var (
@@ -87,7 +88,7 @@ templ Page(site *config.Config, page PageSettings) {
 }
 
 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()