Generates a path based on the router tree.
The router tree to generate the path from.
The depth to traverse the tree.
The path fragments.
Generates a path based on the router tree.