I have some custom components that specify images either in CSS or inline with relative paths:
The problem is that I have a multi-site configuration (I don't use any 3rd party extensions) where the site is defined to be a specific language. So when you go to the site say www.anothersite.com it is Spanish only. When you go to a url Joomla puts in the locale code according to what I setup in the Language manager. ie.
This is a problem with my custom components as now any images try to resolve to:
Which is incorrect as it is at:
I have English sites as well in my multi-site configuration so it is important to resolve to:
www.anothersite.com/images/loader.gif or at least something consistent.
I don't want to incorporate the language switcher as each site needs to be a dedicated language plus I doubt that changes anything. I can certainly add the language locale to my code but that is not a very elegant solution. Is there a better way to do this?