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 a9661d0 commit ecca692Copy full SHA for ecca692
lib/isomorphic/gatsby-helpers.js
@@ -22,7 +22,7 @@ const prefixLink = (_link) => {
22
`
23
invariant(isString(config.linkPrefix), invariantMessage)
24
25
- return isDataURL(_link) ? _link : path.join(config.linkPrefix, _link)
+ return (!isString(_link) || isDataURL(_link)) ? _link : path.join(config.linkPrefix, _link)
26
} else {
27
return _link
28
}
0 commit comments