Used parse_url instead incase the base skin url is on a different host than the base url