diff --git a/packages/config/src/json/json.config.ts b/packages/config/src/json/json.config.ts index 7e079af3c..f7d58255e 100644 --- a/packages/config/src/json/json.config.ts +++ b/packages/config/src/json/json.config.ts @@ -33,7 +33,8 @@ const Q = PLimit(10); export function guessIdFromUri(uri: string): string | null { const parts = uri.split('/'); - const id = parts.pop(); + let id = parts.pop(); + if (uri.endsWith('/')) id = parts.pop(); if (id == null) return null; try {