In an Angular2 guard you get access to an ActivatedRouteSnapshot object. Is there an easy way to recreate the array that can be used as a routeLink?
So when the guard is fired for the route /section/:id/action
the ActivatedRouteSnapshot contains a bunch of information, but to create a link to that specific route you need an array ['/section', '<:id value>', 'action'].
Ofcourse I can just split and whatnow, but considering the complexity that is possible when taking parameters into account I prefer to use the 'standard' way if there is one.
Thanks in advance.