When multiple site URLs are defined (www, www1, www2) the skinURL() resolver could be content with a relative path to the resources.
When asked the page with the URL "www" path is relative, it is the main URL.
When asked the page with the URL "www2" the path is complete.