Skip to content
Snippets Groups Projects
Commit 55aeac92 authored by Hayley Corson-Dosch's avatar Hayley Corson-Dosch
Browse files

Merge branch 'fix_urls' into 'main'

fix urls and asset name typos

See merge request !93
parents 2724101f 310e2a55
No related branches found
No related tags found
1 merge request!93fix urls and asset name typos
...@@ -280,7 +280,7 @@ export default { ...@@ -280,7 +280,7 @@ export default {
subThreatIcon: "noun-canal-29572-4E6D6E" subThreatIcon: "noun-canal-29572-4E6D6E"
}, },
{ {
subThreat: "Industrial Extraction", subThreat: "Industrial extraction",
subThreatText: "Industrial Extraction text", subThreatText: "Industrial Extraction text",
subThreatIcon: "noun-canal-29572-4E6D6E" subThreatIcon: "noun-canal-29572-4E6D6E"
} }
...@@ -339,12 +339,12 @@ export default { ...@@ -339,12 +339,12 @@ export default {
] ]
}, },
{ {
tabTitle: "Climate and Weather", tabTitle: "Climate and weather",
tabContentTitle: "Climate and Weather", tabContentTitle: "Climate and weather",
tabContentTitleID: "climate-and-weather", tabContentTitleID: "climate-and-weather",
tabIcon: "noun-drain-7131918-7A562B", tabIcon: "noun-drain-7131918-7A562B",
tabText: "Climate and Weather text.", tabText: "Climate and weather text.",
tabMapImageAlt: "Climate and Weather alt.", tabMapImageAlt: "Climate and weather alt.",
tabLegendImageAlt: "Legend", tabLegendImageAlt: "Legend",
subThreatPrefix: "CW", subThreatPrefix: "CW",
subThreatData: [ subThreatData: [
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
switchToPrimaryCategory(currentCategory.value, currentCategorySubThreatPrefix.value) switchToPrimaryCategory(currentCategory.value, currentCategorySubThreatPrefix.value)
} }
function getPrefixImageURL(filename) { function getPrefixImageURL(filename) {
return `src/assets/svgs/${filename}.svg` return new URL(`../assets/svgs/${filename}.svg`, import.meta.url).href
} }
function getPrefixImageHTML(filename) { function getPrefixImageHTML(filename) {
const imgURL = getPrefixImageURL(filename) const imgURL = getPrefixImageURL(filename)
...@@ -113,9 +113,9 @@ ...@@ -113,9 +113,9 @@
} }
function getContentImageUrl(title, category_prefix, content_type) { function getContentImageUrl(title, category_prefix, content_type) {
if (primaryCategorySelected.value) { 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 { } 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) { function updateTabContent(category, prefix) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment