only get route id if route with an id is present