now i get the correct url but error split of undefined.