austintoddj / canvas

Publishing on your own terms
http://trycanvas.app
MIT License
3.25k stars 519 forks source link

Correction of issue in EmbedImage and FeaturedImage when path is empty #1282

Closed mho22 closed 1 year ago

mho22 commented 1 year ago

Related to issue #1281

I finally copy pasted the line found in AvatarModal in EmbedImageModal and FeaturedImageModal from the master branch obviously, since the develop branch will modify the canvas dashboard. I didn't want to modify the part of code that manage the canvas path :

Canvas.php line 97 :

public static function basePath(): string
{
        return sprintf('/%s', config('canvas.path'));
}

This always returns : / if empty.

Hope this helps