Skip to content

Bug - Codesandbox images broken due to extra /v4 #3172

@evwilkin

Description

@evwilkin

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions