From c0892c10c372cff7fa19ea568991d605dc9c896c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 18 Nov 2023 07:15:07 -0500 Subject: [PATCH] fix: strip root / --- src/backend/providers/s5.ts | 3 +++ 1 file changed, 3 insertions(+) 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;