made url() method work for subdomain when current page is from different subdomain