From 2fffb59ecfcc7e9a7cd5fc1a4c7d5998ad1f6b64 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 24 Jul 2024 15:35:15 +0200 Subject: fix mangling of stats URLs --- templates/page.templ | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'templates') 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) { } -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) -- cgit 1.4.1