Skip to content

[Blazor] Incorrectly computed URL for JSInitializers without base URLΒ #63184

@maraf

Description

@maraf

If the document is missing base and URL is like http://domain?a=x, it creates URL like http://domain?a=x/_content/PackageId/...js which is incorrect. Instead of concatening string in JSInitializer.ts adjustPath, we should use the same mechanism as for import dotnet.js in MonoPlatform.ts

const absoluteSrc = (new URL(customSrc, document.baseURI)).toString();

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions