Skip to content

Commit

Permalink
fix(sidebar): nav link target not needed for external link
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagith committed Oct 7, 2019
1 parent 72f2e62 commit 7fb6821
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<a *ngSwitchCase="'external'"
[ngClass]="getLinkClass()"
href="{{item.url}}"
[appHtmlAttr]="item.attributes"
[target]="item.attributes.target ? item.attributes.target : '_self'">
[appHtmlAttr]="item.attributes">
<i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
<ng-container>{{item.name}}</ng-container>
<span *ngIf="helper.hasBadge(item)" [ngClass]="item | appSidebarNavBadge">{{ item.badge.text }}</span>
Expand Down

0 comments on commit 7fb6821

Please sign in to comment.