We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b57ff0 commit a0b4ea2Copy full SHA for a0b4ea2
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