In part 1 of this series , we looked at the scenario for grouping routes and how we can implement matching incoming requests with a grouped set of routes. In this blog post, I'll flesh out the implementation of URL Generation. Url Generation Implementation URL generation for a group route is tricky, especially when using named routes because the individual routes that make up the group aren't in the main route collection. As I noted before, the only route that's actually added to the route table is the GroupRoute . Thus if you supply a route name for one of the child routes (such as "r1") during URL generation, you'll get a null URL. Interestingly enough, in this case, if you don't use named routes when using URL generation, everything works...(read more) ...
Go to the complete details ...