You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to prefix the src/srcset attributes of the markup generated by Image.generateHTML with the base URL for a CDN (.e.g. https://mycdn.com/). However, sending that value to parseUrl results in the https:/mycdn.com prefix (with a single slash). I assume this function is the culprit, as Node’s path.join() is not equipped to deal with URLs.
I’m trying to prefix the
src
/srcset
attributes of the markup generated byImage.generateHTML
with the base URL for a CDN (.e.g.https://mycdn.com/
). However, sending that value toparseUrl
results in thehttps:/mycdn.com
prefix (with a single slash). I assume this function is the culprit, as Node’spath.join()
is not equipped to deal with URLs.Should we make this function work for the case where
dir
is a valid URL?Relevant
.eleventy.js
snippet:The text was updated successfully, but these errors were encountered: