« get me outta code hell

handle special characters in URLs more carefully - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/write
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-07-14 12:27:39 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-07-14 12:27:39 -0300
commit4516c98c09ff775892707c3f2b61c857dd82707d (patch)
tree1ffb3b50cf1c9adc7409b4c01f682536e2730a48 /src/write
parent7830c73e6047ab8ec1322c4a56ed6a450bfb11e6 (diff)
handle special characters in URLs more carefully
Diffstat (limited to 'src/write')
-rw-r--r--src/write/page-template.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/write/page-template.js b/src/write/page-template.js
index 8a3b44e8..fcd8759c 100644
--- a/src/write/page-template.js
+++ b/src/write/page-template.js
@@ -665,7 +665,7 @@ export function generateDocumentHTML(pageInfo, {
 
         html.tag('link', {
           rel: 'stylesheet',
-          href: to('shared.staticFile', `site3.css?${cachebust}`),
+          href: to('shared.staticFile', 'site3.css', cachebust),
         }),
 
         html.tag('style',
@@ -676,7 +676,7 @@ export function generateDocumentHTML(pageInfo, {
           ]),
 
         html.tag('script', {
-          src: to('shared.staticFile', `lazy-loading.js?${cachebust}`),
+          src: to('shared.staticFile', 'lazy-loading.js', cachebust),
         }),
       ]),
 
@@ -694,7 +694,7 @@ export function generateDocumentHTML(pageInfo, {
 
           html.tag('script', {
             type: 'module',
-            src: to('shared.staticFile', `client.js?${cachebust}`),
+            src: to('shared.staticFile', 'client.js', cachebust),
           }),
         ]),
     ]);