diff options
author | Alan Pearce | 2024-07-24 15:35:15 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-24 15:35:15 +0200 |
commit | 2fffb59ecfcc7e9a7cd5fc1a4c7d5998ad1f6b64 (patch) | |
tree | 546f215a722e335a8902bdc28769f8ef8310dc9a /templates | |
parent | ab3dc1160db63a961e4e8d822433bae943b5784e (diff) | |
download | website-2fffb59ecfcc7e9a7cd5fc1a4c7d5998ad1f6b64.tar.lz website-2fffb59ecfcc7e9a7cd5fc1a4c7d5998ad1f6b64.tar.zst website-2fffb59ecfcc7e9a7cd5fc1a4c7d5998ad1f6b64.zip |
fix mangling of stats URLs
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.templ | 6 |
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) |