added method to normalize URL for deployment and cache