test new else if statement in urlByName func