Skip to content

Node.js based forum software built for the modern web

feat: resolve paths for staticDirs as well

Barış Soner Uşaklıe0b1c374e446
diff --git a/src/plugins/data.js b/src/plugins/data.js
index 8eb1c79452..565b8ba623 100644
--- a/src/plugins/data.js
+++ b/src/plugins/data.js
@@ -97,7 +97,7 @@ Data.getStaticDirectories = async function (pluginData) {
return;
}
- const dirPath = path.join(pluginData.path, pluginData.staticDirs[route]);
+ const dirPath = await resolveModulePath(pluginData.path, pluginData.staticDirs[route]);
try {
const stats = await fs.promises.stat(dirPath);
if (!stats.isDirectory()) {