We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1480587 commit 22b268fCopy full SHA for 22b268f
2 files changed
packages/react-router/src/Asset.tsx
@@ -51,7 +51,8 @@ function Script({
51
if (attrs?.src) {
52
const normSrc = (() => {
53
try {
54
- return new URL(attrs.src, window.location.href).href
+ const base = document.baseURI || window.location.href
55
+ return new URL(attrs.src, base).href
56
} catch {
57
return attrs.src
58
}
packages/solid-router/src/Asset.tsx
@@ -43,7 +43,8 @@ function Script({
43
44
45
46
47
48
49
50
0 commit comments