css versioning: fix for prefetch links

This commit is contained in:
E. S. 2024-04-18 20:30:39 +00:00
parent 631a382d01
commit 4d0f00c976

View File

@ -176,7 +176,7 @@ function cssLink(string $name, string $theme, &$bname = null): string {
}
function cssPrefetchLink(string $name): string {
$url = '/dist-css/'.$name.'.css?'.getStaticVersion('css/'.$name.'.css');
$url = '/dist-css/'.$name.'.css?v='.getStaticVersion('css/'.$name.'.css');
$integrity = getStaticIntegrityAttribute('css/'.$name.'.css');
return <<<HTML
<link rel="prefetch" href="{$url}"{$integrity} />