sage-svg
sage-svg copied to clipboard
get_svg doesn't accept the full route of an svg
Sometimes I give the full route to @svg and it doesn't work, it has to be absolute.
(example "https://domain.com/wp-content/.../svgfile.svg")
I would do it like this, in ResolvePath:
if (! Str::contains($image, get_home_url())) {
$image = str_replace(get_home_url() . '/', '', $image;
}