From 310e2a551251997cbdb89e189abd5ad3e1ed7f05 Mon Sep 17 00:00:00 2001
From: Corson-Dosch <hcorson-dosch@usgs.gov>
Date: Fri, 7 Mar 2025 10:14:53 -0600
Subject: [PATCH] fix urls and asset name typos

---
 src/assets/text/text.js                   | 10 +++++-----
 src/components/FindexGlobalThreatsViz.vue |  6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/assets/text/text.js b/src/assets/text/text.js
index 3d7d98d..d9f9698 100644
--- a/src/assets/text/text.js
+++ b/src/assets/text/text.js
@@ -280,7 +280,7 @@ export default {
                             subThreatIcon: "noun-canal-29572-4E6D6E"
                         },
                         {
-                            subThreat: "Industrial Extraction",
+                            subThreat: "Industrial extraction",
                             subThreatText: "Industrial Extraction text",
                             subThreatIcon: "noun-canal-29572-4E6D6E"
                         }
@@ -339,12 +339,12 @@ export default {
                     ]
                 },
                 {
-                    tabTitle: "Climate and Weather",
-                    tabContentTitle: "Climate and Weather",
+                    tabTitle: "Climate and weather",
+                    tabContentTitle: "Climate and weather",
                     tabContentTitleID: "climate-and-weather",
                     tabIcon: "noun-drain-7131918-7A562B",
-                    tabText: "Climate and Weather text.",
-                    tabMapImageAlt: "Climate and Weather alt.",
+                    tabText: "Climate and weather text.",
+                    tabMapImageAlt: "Climate and weather alt.",
                     tabLegendImageAlt: "Legend",
                     subThreatPrefix: "CW",
                     subThreatData: [
diff --git a/src/components/FindexGlobalThreatsViz.vue b/src/components/FindexGlobalThreatsViz.vue
index af38c6c..c9221a7 100644
--- a/src/components/FindexGlobalThreatsViz.vue
+++ b/src/components/FindexGlobalThreatsViz.vue
@@ -105,7 +105,7 @@
         switchToPrimaryCategory(currentCategory.value, currentCategorySubThreatPrefix.value)
     }
     function getPrefixImageURL(filename) {
-        return `src/assets/svgs/${filename}.svg`
+        return new URL(`../assets/svgs/${filename}.svg`, import.meta.url).href
     }
     function getPrefixImageHTML(filename) {
         const imgURL = getPrefixImageURL(filename)
@@ -113,9 +113,9 @@
     }
     function getContentImageUrl(title, category_prefix, content_type) {
         if (primaryCategorySelected.value) {
-            return `src/assets/images/${title.replace(/ /g, "_")}_${content_type}.png`
+            return new URL(`../assets/images/${title.replace(/ /g, "_")}_${content_type}.png`, import.meta.url).href
         } else {
-            return `src/assets/images/${category_prefix}_${title.replace(/ /g, "_")}_${content_type}.png`
+            return new URL(`../assets/images/${category_prefix}_${title.replace(/ /g, "_")}_${content_type}.png`, import.meta.url).href
         }        
     }
     function updateTabContent(category, prefix) {
-- 
GitLab