Describe the problem
Identified in #3122 (comment), the code used to update image src URLs for React examples works fine in local builds but on the live site (& PR preview links) the images do not display correctly as an extra /v4 is included in the URL.
Ex: Card expandable with icon React example
- Original import:
import pfLogoSmall from './pf-logo-small.svg';
- Codesandbox image URL:
const pfLogoSmall = "https://www.patternfly.org/v4/v4/images/pf-logo-small.83850cd64d75f0daff34b429d7bf9185.svg";
it does work for the Core examples which follows a similar pattern of updating the image src but point to the assets directory rather than imported image paths.
Describe the problem
Identified in #3122 (comment), the code used to update image src URLs for React examples works fine in local builds but on the live site (& PR preview links) the images do not display correctly as an extra
/v4is included in the URL.Ex: Card expandable with icon React example
import pfLogoSmall from './pf-logo-small.svg';const pfLogoSmall = "https://www.patternfly.org/v4/v4/images/pf-logo-small.83850cd64d75f0daff34b429d7bf9185.svg";it does work for the Core examples which follows a similar pattern of updating the image src but point to the
assetsdirectory rather than imported image paths.