Comments

gaëlg created an issue. See original summary.

gaëlg’s picture

Title: "Render SVG image as <img>" option is always applied to the default image, even whe unchecked » "Render SVG image as <img>" option is always applied to the default image, even when unchecked
Assigned: gaëlg » Unassigned
Status: Needs work » Fixed

It happens because the default image path must have no slash before, or \Drupal\svg_image\Plugin\Field\FieldFormatter\SvgImageFormatterTrait::renderAsSvg cannot read the SVG file content. I updated the config field help text.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • gaëlg committed 50c8984c on 8.x-2.x
    No slash at the begining of the default image URL, for <svg>...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.