[core] fixing a bug on parameters in urls in the route method