This is not working:
But this is working:
"../assets/images/image.jpg" -This means
That relative link will only work if your page is in a subfolder in
"http://localhost/abc/def/geh/"
If the location of your page really is
"localhost/asdf/asdf/asdf/asdf/index.php"
(which seems ridiculous) to get to the assets folder relatively you would have to go all the way to the root.
'../../../../abc/deh/geh/assets/images/image.jpg;
Alternatively you could use a base tag in your head tag to make the URL in the actual src attribute more friendly.