We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e973643 commit c822f8fCopy full SHA for c822f8f
packages/angular/build/src/utils/server-rendering/fetch-patch.ts
@@ -28,9 +28,9 @@ export function patchFetchToLoadInMemoryAssets(baseURL: URL): void {
28
if (input instanceof URL) {
29
url = input;
30
} else if (typeof input === 'string') {
31
- url = new URL(input);
+ url = new URL(input, baseURL);
32
} else if (typeof input === 'object' && 'url' in input) {
33
- url = new URL(input.url);
+ url = new URL(input.url, baseURL);
34
} else {
35
return originalFetch(input, init);
36
}
0 commit comments