diff --git a/phpwf/plugins/class.modulescriptcache.php b/phpwf/plugins/class.modulescriptcache.php
index 20e98354..44385f19 100644
--- a/phpwf/plugins/class.modulescriptcache.php
+++ b/phpwf/plugins/class.modulescriptcache.php
@@ -305,15 +305,15 @@ class ModuleScriptCache
if (defined('VITE_DEV_SERVER')) {
$url = 'http://' . VITE_DEV_SERVER . '/' . $module->src;
} else {
- $url = $this->assetDir . '/' . $module->file;
+ $url = '.'.$this->assetDir . '/' . $module->file;
if (isset($module->css)) {
foreach ($module->css as $css)
- $html .= sprintf('', $this->assetDir.'/'.$css);
+ $html .= sprintf('', '.'.$this->assetDir.'/'.$css);
$html .= "\r\n";
}
}
} elseif (str_starts_with($module,$this->baseDir.'/www')) {
- $url = substr($module, strlen($this->baseDir)+4);
+ $url = '.'.substr($module, strlen($this->baseDir)+4);
}
if (isset($url)) {