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
carlostbb opened this issue
Oct 2, 2023
· 0 comments
· Fixed by #38626
Labels
status: triage neededIssue or pull request that need to be triaged and assigned to a reviewertype: bugAn issue or pull request relating to a bug in Gatsby
This issue is not a duplicate. Before opening a new issue, please search existing issues: https:/gatsbyjs/gatsby/issues
This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https:/gatsbyjs/gatsby/discussions
Description
I'm following the doc that shows how to add image CDN support to a source plugin, however I'm currently having a problem where only the first instance of each variable in the placeholderUrl is replaced when in my case I need to be able to set it twice in the url.
This is how I am creating the node for the image and how the placeholderUrl is set:
status: triage neededIssue or pull request that need to be triaged and assigned to a reviewertype: bugAn issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
I'm following the doc that shows how to add image CDN support to a source plugin, however I'm currently having a problem where only the first instance of each variable in the placeholderUrl is replaced when in my case I need to be able to set it twice in the url.
This is how I am creating the node for the image and how the placeholderUrl is set:
This is the error I get because the
%height%
is only replaced once:Reproduction Link
Steps to Reproduce
%width%
or%height%
twice in the url.Expected Result
The image is returned with all instances of
%width%
or%height%
replaced.Actual Result
Only the first instance of each variable is replaced.
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: