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 9
9
</ a >
10
10
< a *ngSwitchCase ="'external' "
11
11
[ngClass] ="getLinkClass() "
12
- [href] ="item.url "
12
+ [href] ="href "
13
13
[appHtmlAttr] ="item.attributes "
14
14
>
15
15
< 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 {
22
22
23
23
ngOnInit ( ) {
24
24
this . linkType = this . getLinkType ( ) ;
25
- this . href = this . isDisabled ( ) ? '' : this . item . url ;
25
+ this . href = this . isDisabled ( ) ? '' : ( this . item . href || this . item . url ) ;
26
26
}
27
27
28
28
public getLinkClass ( ) {
@@ -49,7 +49,7 @@ export class AppSidebarNavLinkComponent implements OnInit {
49
49
}
50
50
51
51
public isExternalLink ( ) {
52
- return this . item . url . substring ( 0 , 4 ) === 'http' ;
52
+ return ! ! this . item . href || this . item . url . substring ( 0 , 4 ) === 'http' ;
53
53
}
54
54
55
55
public hideMobile ( ) {
You can’t perform that action at this time.
0 commit comments