Change example name_provider closure

No need to use router->currentRouteAction()