diff --git a/projects/nshmp-ws/src/app/services/components/content/content.component.html b/projects/nshmp-ws/src/app/services/components/content/content.component.html index a7e49548d5b005aeaf999d2048f4389599c96389..29768740629c63600e1f19969a96d8ccb5ad4d3c 100644 --- a/projects/nshmp-ws/src/app/services/components/content/content.component.html +++ b/projects/nshmp-ws/src/app/services/components/content/content.component.html @@ -115,23 +115,13 @@ </h4> <mat-nav-list> @for (app of serviceGroup.applicationsUsedIn; track app) { - @if (serviceGroup.isHref) { - <a - mat-list-item - [href]="app.routerLink" - target="_blank" - > - {{ app.display }} - </a> - } @else { - <a - mat-list-item - [routerLink]="app.routerLink" - target="_blank" - > - {{ app.display }} - </a> - } + <a + mat-list-item + [href]="baseUrl + app.routerLink" + target="_blank" + > + {{ app.display }} + </a> } </mat-nav-list> </div> diff --git a/projects/nshmp-ws/src/app/services/components/content/content.component.ts b/projects/nshmp-ws/src/app/services/components/content/content.component.ts index d016f9e085d09fe6945b786c867ab4412354dc4b..a7198d9b254b0258ba5be4f7b1c0f33c6151231f 100644 --- a/projects/nshmp-ws/src/app/services/components/content/content.component.ts +++ b/projects/nshmp-ws/src/app/services/components/content/content.component.ts @@ -126,12 +126,7 @@ export class ContentComponent implements AfterViewInit { apps().hazard.dynamic, apps().hazard.disagg, apps().gmm.spectra, - ].map(nav => { - return { - ...nav, - routerLink: `${this.baseUrl}${nav.routerLink}`, - }; - }), + ], applicationUsedInLabel: 'Main Applications', id: ServiceGroupId.TOOLBOX, images: [],