fix: strip root /
This commit is contained in:
parent
34e6e99287
commit
c0892c10c3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue