diff --git a/src/@fuse/components/navigation/horizontal/components/basic/basic.component.html b/src/@fuse/components/navigation/horizontal/components/basic/basic.component.html index 73ca799b..a8ce9002 100644 --- a/src/@fuse/components/navigation/horizontal/components/basic/basic.component.html +++ b/src/@fuse/components/navigation/horizontal/components/basic/basic.component.html @@ -19,7 +19,8 @@ + [href]="item.link" + [target]="item.target || '_self'"> @@ -49,6 +50,7 @@ class="fuse-horizontal-navigation-item" *ngIf="item.link && item.externalLink && item.function && !item.disabled" [href]="item.link" + [target]="item.target || '_self'" (click)="item.function(item)" mat-menu-item> diff --git a/src/@fuse/components/navigation/navigation.types.ts b/src/@fuse/components/navigation/navigation.types.ts index 32b37ae4..c6e2bbdd 100644 --- a/src/@fuse/components/navigation/navigation.types.ts +++ b/src/@fuse/components/navigation/navigation.types.ts @@ -17,6 +17,12 @@ export interface FuseNavigationItem disabled?: boolean; link?: string; externalLink?: boolean; + target?: + | '_blank' + | '_self' + | '_parent' + | '_top' + | string; exactMatch?: boolean; isActiveMatchOptions?: IsActiveMatchOptions; function?: (item: FuseNavigationItem) => void; diff --git a/src/@fuse/components/navigation/vertical/components/basic/basic.component.html b/src/@fuse/components/navigation/vertical/components/basic/basic.component.html index 7eea495e..e6f5cc4d 100644 --- a/src/@fuse/components/navigation/vertical/components/basic/basic.component.html +++ b/src/@fuse/components/navigation/vertical/components/basic/basic.component.html @@ -19,7 +19,8 @@ + [href]="item.link" + [target]="item.target || '_self'"> @@ -49,6 +50,7 @@ class="fuse-vertical-navigation-item" *ngIf="item.link && item.externalLink && item.function && !item.disabled" [href]="item.link" + [target]="item.target || '_self'" (click)="item.function(item)">