I omitted a piece of this – the partial was created by the editor from a layout page.
In the layout page, the image selection sets:
assets/img/apple-icon.png (works both in the browser when attached to a content page, and in the editor)
And if you select the same image in a partial it sets:
../assets/img/apple-icon.png (works both in the browser and in the editor)
HOWEVER if you convert a section of content in a layout that includes an image, the original path (assets/img/apple-icon.png) works only in the browser and not the editor.
In other words, the partial should properly set the path, if it is in fact supposed to be different than when used in the layout.
As always, the point is missed here. Since communication takes two, I’ll take half the blame.
I’m reporting a bug, not asking for a work-around or a solution. I do so in hopes of making the product better…period.
If Site Root is required when using partials, then I consider it a bug that Wappler does not prompt the user to change if not already set. If you feel the novice user will know to search the forum for a post about SPA, in order to learn that the editor allows for invalid settings, that’s up to you guys.
Actually having relative links in partials doesn’t make much sense, as partials can be included all over the place in different pages in different sub folders. So where is the relative link to then?
Maybe we should enforce site root relative links in partials always?