diff --git a/sharedComponents/navigationBar.component.ts b/sharedComponents/navigationBar.component.ts index e6375b75..3454e3d9 100644 --- a/sharedComponents/navigationBar.component.ts +++ b/sharedComponents/navigationBar.component.ts @@ -258,7 +258,7 @@ export class NavigationBarComponent implements OnInit, OnDestroy, OnChanges { parameterNames.push("f0"); parameterValues.push("q"); } - this.router.navigate([this.properties.searchLinkToAll], {queryParams: this.routerHelper.createQueryParams(parameterNames, parameterValues)}); + this.router.navigate([this.properties.searchLinkToAll ? this.properties.searchLinkToAll : this.properties.searchLinkToResults], {queryParams: this.routerHelper.createQueryParams(parameterNames, parameterValues)}); if(canvas) { this.closeCanvas(canvas); }