Hello,

I'm using the $directory variable to get a specific image that's located in my custom theme folder.
So I have this now:

img id="bgimg" src=" print $directory /images/bg/main-bg.jpg" alt="main-bg" /

This is working when going to for example: http://mydomain/events or http://mydomain, so the image url is then: http://mydomain/sites/all/themes/patlezizmo/images/bg/main-bg.jpg

So while this is working it isn't working after loggin in because the url is then http://mydomain/user/1 , BUT http://mydomain/user is working.

Now when I'm on the page http://mydomain/user/1 the image url is then: http://mydomain/user/sites/all/themes/patlezizmo/images/bg/main-bg.jpg

Noticed that the uri has changed?

Anyone knows how this comes and how to solve it?
Hope that I was clear enough ;-).

Thanks!