SiteToLink was not being properly substitiued during the curl call, so moved inline