From 4122d8d883f3e6ac797dccafa48a1ec0905e17d6 Mon Sep 17 00:00:00 2001
From: Brandon Clayton <bclayton@usgs.gov>
Date: Thu, 20 Feb 2025 10:12:22 -0700
Subject: [PATCH] fix url

---
 .../components/content/content.component.html | 24 ++++++-------------
 .../components/content/content.component.ts   |  7 +-----
 2 files changed, 8 insertions(+), 23 deletions(-)

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 a7e49548d..297687406 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 d016f9e08..a7198d9b2 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: [],
-- 
GitLab