addressing pr comments: begin end block in templated_url method