about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-07-24 15:35:15 +0200
committerAlan Pearce2024-07-24 15:35:15 +0200
commit2fffb59ecfcc7e9a7cd5fc1a4c7d5998ad1f6b64 (patch)
tree546f215a722e335a8902bdc28769f8ef8310dc9a
parentab3dc1160db63a961e4e8d822433bae943b5784e (diff)
downloadwebsite-2fffb59ecfcc7e9a7cd5fc1a4c7d5998ad1f6b64.tar.lz
website-2fffb59ecfcc7e9a7cd5fc1a4c7d5998ad1f6b64.tar.zst
website-2fffb59ecfcc7e9a7cd5fc1a4c7d5998ad1f6b64.zip
fix mangling of stats URLs
-rw-r--r--templates/page.templ6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/page.templ b/templates/page.templ
index 980f827..39dd263 100644
--- a/templates/page.templ
+++ b/templates/page.templ
@@ -87,7 +87,11 @@ templ Page(site *config.Config, page PageSettings) {
 	</html>
 }
 
-func mkURL(u config.URL, path string, title string) string {
+func mkURL(original config.URL, path string, title string) string {
+	ou := *original.URL
+	u := config.URL{
+		URL: &ou,
+	}
 	q := url.Values{}
 	q.Add("p", path)
 	q.Add("t", title)