Here is my folders structure:
- var/www/project
- public
- images
- image1.png
- style.css
- storage
- other_images
- image2.png
I'm trying to access the picture with background-image: url("../storage/other_images/image2.png");
However the image is not displayed. But if I try to access another image like this: background-image: url("/images/image1.png"); it works.
And if I try background-image: url("../public/images/image1.png"); it fails again. Which should work as I'm basically providing the same url.
Another weird thing is that background-image: url("../images/image1.png"); also works (should it?). I can even write background-image: url("../../../../../../../images/image1.png"); and it still finds it.
Is this how it is supposed to be?
The main question is: how do I properly specify url for the image2.png?