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 ab486e8 commit 0d6cb54Copy full SHA for 0d6cb54
templates/vue/utils/fetch.js
@@ -12,7 +12,9 @@ export default function (id, options = {}) {
12
options.headers.set('Content-Type', MIME_TYPE)
13
}
14
15
- return fetch(new URL(id, ENTRYPOINT).toString(), options).then((response) => {
+ const entryPoint = ENTRYPOINT + (!ENTRYPOINT.endsWith('/') ? '/' : '')
16
+
17
+ return fetch(new URL(id, entryPoint), options).then((response) => {
18
if (response.ok) return response
19
20
return response
0 commit comments