diff --git a/src/backend/providers/s5.ts b/src/backend/providers/s5.ts index a7fd0a1..66749b9 100644 --- a/src/backend/providers/s5.ts +++ b/src/backend/providers/s5.ts @@ -37,6 +37,9 @@ export default class S5Provider implements ContentProvider { let found = false; for (const indexFile of meta.tryFiles) { urlPath = nodePath.join(urlPath, indexFile); + if (urlPath.startsWith("/")) { + urlPath = urlPath.substring(1); + } if (urlPath in meta.paths) { found = true; break;