Temporary fix because CURLINFO_EFFECTIVE_URL doesn't work like I thought