add support for the route name on the route

Solves #11124