File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Components/Web.JS/src/JSInitializers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,9 @@ export class JSInitializer {
49
49
await Promise . all ( initializerFiles . map ( f => importAndInvokeInitializer ( this , f ) ) ) ;
50
50
51
51
function adjustPath ( path : string ) : string {
52
- // This is the same we do in JS interop with the import callback
53
- const base = document . baseURI ;
54
- path = base . endsWith ( '/' ) ? `${ base } ${ path } ` : `${ base } /${ path } ` ;
55
- return path ;
52
+ // Use URL constructor to properly resolve relative paths, avoiding issues with query parameters
53
+ // This is the same mechanism as for import dotnet.js in MonoPlatform.ts
54
+ return new URL ( path , document . baseURI ) . toString ( ) ;
56
55
}
57
56
58
57
async function importAndInvokeInitializer ( jsInitializer : JSInitializer , asset : JSAsset ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments