Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
respect www subdomain when fetching website favicon
Max Beer83af7fa18ae1
diff --git a/src/components/common/Favicon.tsx b/src/components/common/Favicon.tsxindex e78bdbc7d..47c65aab1 100644--- a/src/components/common/Favicon.tsx+++ b/src/components/common/Favicon.tsx@@ -1,5 +1,5 @@function getHostName(url: string) {- const match = url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:/\n?=]+)/im);+ const match = url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?([^:/\n?=]+)/im);return match && match.length > 1 ? match[1] : null;}