diff --git a/packages/angular/build/src/utils/server-rendering/fetch-patch.ts b/packages/angular/build/src/utils/server-rendering/fetch-patch.ts index 7216f732e732..c099d7dd902c 100644 --- a/packages/angular/build/src/utils/server-rendering/fetch-patch.ts +++ b/packages/angular/build/src/utils/server-rendering/fetch-patch.ts @@ -28,9 +28,9 @@ export function patchFetchToLoadInMemoryAssets(baseURL: URL): void { if (input instanceof URL) { url = input; } else if (typeof input === 'string') { - url = new URL(input); + url = new URL(input, baseURL); } else if (typeof input === 'object' && 'url' in input) { - url = new URL(input.url); + url = new URL(input.url, baseURL); } else { return originalFetch(input, init); }