Traverses the router tree up to the root route.
The router slot to start traversing from.
The router tree and its depth.
Traverses the router tree up to the root route.