Handle multiple URLs correctly