How can you use a relative URL for an image file inside documents vs hard coding the document ID in HTML?
I have an org to spin off templates that use images with the src linked to the document ID, like so src="/servlet/servlet.ImageServer?id=123ABC&oid=456XYZ/"
but the problem is when I create a spun org, the images are broken because the id and org id are different.
Is there a more relative way of linking the document src via HTML? something like src="/servlet/servlet.ImageServer?name=ImageFile"
?
It's outside Visualforce unfortunately so I can't apex it.
If this is impossible, please let me know too, and why. Alternatives also welcome, like how to use static resources as user-friendly link in HTML (not Visualforce).
<link rel="apple-touch-icon" sizes="57x57" href="{!URLFOR($Resource.ZipFile", 'mytouch-icon-57x57.png')}" />
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_additional_page.htm