Encode CMS image urls
This commit is contained in:
parent
52af104e1d
commit
218ea8d863
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ const getImageSrcset = path => {
|
|||
|
||||
const getImageSrc = (path, sizeRequested) => {
|
||||
if (!path || path.match(/^http/) || path.match(/svg$/) || window.CMS) {
|
||||
return path
|
||||
return encodeURI(path)
|
||||
}
|
||||
sizeRequested = parseInt(sizeRequested, 10)
|
||||
let size
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue