From angular docs :
The router link directive always treats the provided input as a delta to the current url.
For instance, if the current url is
/user/(box//aux:team)
. Then the following link<a [routerLink]="['/user/jim']">Jim</a>
will generate the link/user/(jim//aux:team)
.
So how do you create a link to /user/jim
?
I tried ['/user/jim', { outlets: { aux: null }}]
but this isn't working.
Even if it worked it wouldn't have been a optimal solution. I'm rather looking for a way to navigate to an absolute url than cancelling possibles outlets.
EDIT:
On the same subject I have a link to the root : routerLink="/"
that does just that, it redirect to the root of my application without any outlets like an absolute link. What's funny here is I don't specially want that behavior for that particular link, keeping any outlets routes was fine...