After upgrading to the B4A 8.80 beta the above suddenly doesn't work anymore.
I'm not sure if it is due to a change in the Xui library or somewhere else.
I'm using this as workaround which is more safe as it uses a filename and due to the dropping of the conditional lines it's the same amount of lines aswell.
B4X:
Dim path As String
path=xui.FileUri(dirAssets,"info.png") 'just point to a valid asset file instead of the previous "" 'hack'
path=path.SubString2(0,path.LastIndexOf("/")) 'strip off the filename and leading / again
html=html.Replace("[path]",path)