in my Laravel template I include a JS-file.
Here I am using a plugin which needs images.
$.backstretch([
"../img/header-tt-big.jpg",
"../img/header-soccer-big.jpg"
]
So.. when I go to my "startpage" like this it is working: http://localhost/project/public/de/p1
When I go here it won't work http://localhost/project/public/de/p1/register
I would have to add another "../" for all images in the JS-file. How can I make this work without changing the array manually everytime?
Thank you :)