We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e98069 commit bb6a05bCopy full SHA for bb6a05b
src/JSInterop/Microsoft.JSInterop.JS/src/src/Microsoft.JSInterop.ts
@@ -71,7 +71,7 @@ export module DotNet {
71
// However since we're the one calling the import keyword, they would be resolved relative to
72
// this framework bundle URL. Fix this by providing an absolute URL.
73
if (typeof url === "string" && url.startsWith("./")) {
74
- url = document.baseURI + url.substr(2);
+ url = new URL(url.substr(2), document.baseURI).toString();
75
}
76
77
return import(/* webpackIgnore: true */ url);
0 commit comments