diff --git a/src/lib/components/HoverStockChart.svelte b/src/lib/components/HoverStockChart.svelte index 0c120ee1..adba0aa2 100644 --- a/src/lib/components/HoverStockChart.svelte +++ b/src/lib/components/HoverStockChart.svelte @@ -6,7 +6,9 @@ function getHref(symbol: string) { let path = ""; if (symbol?.length !== 0) { - if (["stocks", "stock"].includes(assetType?.toLowerCase())) { + if (symbol.includes("^")) { + path = `/index/${symbol}${link ? `/${link}` : ""}`; + } else if (["stocks", "stock"].includes(assetType?.toLowerCase())) { path = `/stocks/${symbol}${link ? `/${link}` : ""}`; } else if (assetType?.toLowerCase() === "etf") { path = `/etf/${symbol}${link ? `/${link}` : ""}`; diff --git a/src/routes/index/[tickerID]/+layout.svelte b/src/routes/index/[tickerID]/+layout.svelte index 0c45f922..7e3f554c 100644 --- a/src/routes/index/[tickerID]/+layout.svelte +++ b/src/routes/index/[tickerID]/+layout.svelte @@ -600,7 +600,9 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" > @@ -610,7 +612,9 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" > @@ -632,7 +636,9 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" > @@ -642,7 +648,9 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" > @@ -664,7 +672,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" > @@ -689,7 +697,7 @@ viewBox="0 0 24 24" > {prePostData?.price?.toFixed(2)} = 0 ? "before:content-['+'] text-green-800 dark:text-[#00FC50]" : 'text-red-800 dark:text-[#FF2F1F]'}"