- Issue created by @spicy.werewolf
Currently we need to hard code image urls when we have images in storybook. We can make it relative to a project root. e.g. `web` but that still requires starting the image url path back at `themes/contrib/bluecheese/blah`. But we can't rely on that being where bluecheese will live in a given project structure. Morever, we want to be able to render bluecheese components in storybook even if they are being hosted on a different server like github pages for example.
In any of the stories.twig files that's using the 'url' version of the image template, strip back the url to where it would be most relative. Observe that the image will not render.
Investigate the patches here
https://www.drupal.org/project/storybook/issues/3441430
π¬
Image not displayed correctly because image path is relative
Active
or come up with another strategy.
Active
2.0
Code