<p dir="auto"><strong>I'm submitting a ...</strong>  (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Reopening <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132421926" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/6971" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/6971/hovercard" href="https://github.com/angular/angular/issues/6971">#6971</a>. I cannot reopen, so hence I'm making a new ticket.</p>
<p dir="auto">Binding <code class="notranslate">routerLink</code> to null or empty array does not yield exception anymore, but yields a url to the current route rather than an empty href, which is surprising (and imo bad).</p>
<p dir="auto"><strong>Expected behavior</strong><br>
I would expect empty <code class="notranslate">routerLink</code> (i.e. null/undefined/empty array/array with only nulls and undefined) to not add an href attribute. It doesn't make sense to just pick a url (the current) for linking when a url cannot be produced.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.4.2</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report
[ x ] feature request
[ ] support request"><pre class="notranslate"><code class="notranslate">[ ] bug report
[ x ] feature request
[ ] support request
</code></pre></div>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Currently null or empty value passed to <code class="notranslate">routerLink</code> adds current page <code class="notranslate">href</code> value to link that is not useful. There is a lot of usecases for 'disabled' links that should not navigate anywhere and should not has <code class="notranslate">href</code> attribute at all.<br>
It would be useful to have null/empty value support by <code class="notranslate">routerLink</code> that will results with no <code class="notranslate">href</code> attribute on link at all to prevent any navigation/link copying.</p>