Skip to content

Commit

Permalink
fix: use encodeURIComponent instead of encodeURI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 26, 2019
1 parent a834d8a commit 03fb267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const isSmall = cardSize => cardSize === 'small'
export const imageProxy = url =>
REGEX_LOCALHOST.test(url)
? url
: `https://images.weserv.nl/?url=${encodeURI(url)}&l=9&af&il`
: `https://images.weserv.nl/?url=${encodeURIComponent(url)}&l=9&af&il`

export const isLazySupported = !isSSR && 'IntersectionObserver' in window

Expand Down
2 changes: 1 addition & 1 deletion packages/react/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ storiesOf('setData', module)
.add('object', () =>
createStoryEntry({
setData: {
image: { url: 'https://microlink.io/banner_mql.png' },
image: { url: 'https://cdn.microlink.io/logo/banner.png' },
title: 'Microlink Query Language',
description: 'Turns any web into data',
url: 'https://docs.microlink.io'
Expand Down

0 comments on commit 03fb267

Please sign in to comment.