added url method to generate url with route id