placeholderUrl variables only get replaced once #38604
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An 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: