title: Angular 2 Routing | How to make routerLink override param and add param when necessary?
body: <p>My routing looks like this:</p>
  
  <pre><code>name/lastname/:id
  </code></pre>
  
  <p>And currently my URL is:</p>
  
  <pre><code>name/lastname
  </code></pre>
  
  <p>And I have a list of anchors:</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li *ngFor="let item of list"&gt;
      &lt;a [routerLink]="{item.id}"&gt;&lt;/a&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>When I click once on an anchor, my url changes to:</p>
  
  <pre><code>name/lastname/123
  </code></pre>
  
  <p>My problem is that when I click once more, I want to configure that I am changing an existing param, because now I get the following:</p>
  
  <pre><code>name/lastname/123/123
  </code></pre>