File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 99 </ a >
1010 < a *ngSwitchCase ="'external' "
1111 [ngClass] ="getLinkClass() "
12- [href] ="item.url "
12+ [href] ="href "
1313 [appHtmlAttr] ="item.attributes "
1414 >
1515 < i *ngIf ="helper.hasIcon(item) " [ngClass] ="item | appSidebarNavIcon "> </ i >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class AppSidebarNavLinkComponent implements OnInit {
2222
2323 ngOnInit ( ) {
2424 this . linkType = this . getLinkType ( ) ;
25- this . href = this . isDisabled ( ) ? '' : this . item . url ;
25+ this . href = this . isDisabled ( ) ? '' : ( this . item . href || this . item . url ) ;
2626 }
2727
2828 public getLinkClass ( ) {
@@ -49,7 +49,7 @@ export class AppSidebarNavLinkComponent implements OnInit {
4949 }
5050
5151 public isExternalLink ( ) {
52- return this . item . url . substring ( 0 , 4 ) === 'http' ;
52+ return ! ! this . item . href || this . item . url . substring ( 0 , 4 ) === 'http' ;
5353 }
5454
5555 public hideMobile ( ) {
You can’t perform that action at this time.
0 commit comments