fix bug with path not taken into account when passing a router