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 d31781b commit 5122e24Copy full SHA for 5122e24
src/index.js
@@ -107,8 +107,12 @@ class CoCreateServerSideRender {
107
src = src.replaceAll(/\$relativePath\/?/g, path);
108
}
109
110
+ let pathname = file.path
111
+ if (!pathname.endsWith("/")) {
112
+ pathname += "/";
113
+ }
114
// Construct actual pathname using src and the original URL
- let pathname = new URL(src, `http://localhost${file.path}`)
115
+ pathname = new URL(src, `http://localhost${pathname}`)
116
.pathname;
117
118
if (pathname.endsWith("/")) {
0 commit comments