Skip to content

Commit 7fb6821

Browse files
committed
fix(sidebar): nav link target not needed for external link
1 parent 72f2e62 commit 7fb6821

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

projects/coreui/angular/src/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
<a *ngSwitchCase="'external'"
33
[ngClass]="getLinkClass()"
44
href="{{item.url}}"
5-
[appHtmlAttr]="item.attributes"
6-
[target]="item.attributes.target ? item.attributes.target : '_self'">
5+
[appHtmlAttr]="item.attributes">
76
<i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
87
<ng-container>{{item.name}}</ng-container>
98
<span *ngIf="helper.hasBadge(item)" [ngClass]="item | appSidebarNavBadge">{{ item.badge.text }}</span>

0 commit comments

Comments
 (0)