sage-svg icon indicating copy to clipboard operation
sage-svg copied to clipboard

get_svg doesn't accept the full route of an svg

Open SergiArias opened this issue 1 year ago • 0 comments

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;
            }

SergiArias avatar Aug 29 '24 11:08 SergiArias