Select correctly childre across id in the URL