diff --git a/src/client/app/utils.ts b/src/client/app/utils.ts index dea88b649049..5c03021fe27e 100644 --- a/src/client/app/utils.ts +++ b/src/client/app/utils.ts @@ -6,6 +6,7 @@ export { inBrowser } * Join two paths by resolving the slash collision. */ export function joinPath(base: string, path: string): string { + if (path.charAt(0) !== '/') return path return `${base}${path}`.replace(/\/+/g, '/') }