added url method for router to generate absolute url