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 e1f8b63 commit 2abcfbbCopy full SHA for 2abcfbb
.eleventy.js
@@ -165,13 +165,15 @@ module.exports = function(eleventyConfig) {
165
eleventyConfig.addFilter("cloudinaryifyPath", (str) => {
166
167
if(str) {
168
- // we need to double escape some characters which might appear in text
+
169
+ // add generic url encoding
170
+ str = encodeURI(str);
171
172
+ // we also need to double escape some characters which might appear in text
173
// but are meaningful in cloudinary URLs
174
str = str.replace(/,/g, '%252C');
175
str = str.replace(/\//g, '%252F');
176
- // add generic url encoding
- str = encodeURI(str);
177
}
178
return str;
179
});
0 commit comments