diff --git a/sharedComponents/navigationBar.component.html b/sharedComponents/navigationBar.component.html
index b0a6513f..37005d83 100644
--- a/sharedComponents/navigationBar.component.html
+++ b/sharedComponents/navigationBar.component.html
@@ -41,12 +41,12 @@
*ngIf="isAtleastOneEnabled(menu.entitiesRequired,showEntity) && isAtleastOneEnabled(menu.routeRequired, showPage)">
{{menu.title}}
{{menu.title}}
+ [href]="menu.items.length === 0?menu.url:null" (click)="menu.items.length === 0?closeCanvas(canvas):null"
+ [class.custom-external]="menu.target != '_self'" [target]="menu.target">{{menu.title}}
+
@@ -170,7 +173,7 @@
-
diff --git a/sharedComponents/navigationBar.component.ts b/sharedComponents/navigationBar.component.ts
index 6fcd0125..e6375b75 100644
--- a/sharedComponents/navigationBar.component.ts
+++ b/sharedComponents/navigationBar.component.ts
@@ -243,7 +243,7 @@ export class NavigationBarComponent implements OnInit, OnDestroy, OnChanges {
this.search_input.input.focus(true);
}
- goTo() {
+ goTo(canvas = null) {
let parameterNames = [];
let parameterValues = [];
@@ -259,5 +259,8 @@ export class NavigationBarComponent implements OnInit, OnDestroy, OnChanges {
parameterValues.push("q");
}
this.router.navigate([this.properties.searchLinkToAll], {queryParams: this.routerHelper.createQueryParams(parameterNames, parameterValues)});
+ if(canvas) {
+ this.closeCanvas(canvas);
+ }
}
}