I have seen few questions but I can't find they were old and without any solutions.
So I'n my asset folder I have the following tree:
- ressources
- img
- logo.png
- css
- style.css
- process1
- page1.html
- index.html
My "index.html" when I include img/logo.png or css/style.css everything works fine.
But to have the same result in "page1.html" I must use ../img/logo.png and it's quite annoying since I have a lot of pages.
I have found two ugly solutions:
Maybe a solution is to use the base tag witch allow you to set a default base to all yours relatives links. So for android it will be:
<base href="file:///android_asset/www/" target="_blank">
And all yours link will be:
<img src="img/logo.png">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With