-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace
//
characters in ipx urls
- Loading branch information
Showing
4 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/dist/runtime/providers/ipx.js b/dist/runtime/providers/ipx.js | ||
index 434c1a9ffa42cfcff730623dd22cdf89f1efcc47..5e914567a6743e5e2527eed61f88489bd58c8624 100644 | ||
--- a/dist/runtime/providers/ipx.js | ||
+++ b/dist/runtime/providers/ipx.js | ||
@@ -24,7 +24,8 @@ export const getImage = (src, { modifiers = {}, baseURL } = {}, ctx) => { | ||
baseURL = joinURL(ctx.options.nuxt.baseURL, "/_ipx"); | ||
} | ||
return { | ||
- url: joinURL(baseURL, params, encodePath(src)) | ||
+ // TODO: port to ipxStatic | ||
+ url: joinURL(baseURL, params, encodePath(src).replace(/\/\//g, '/')) | ||
}; | ||
}; | ||
export const validateDomains = true; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.