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
explicitly use the current location.href
Kilian Valkhofe7a7156b9acb
diff --git a/src/tracker/index.js b/src/tracker/index.jsindex f0cf700d2..9fa560e6d 100644--- a/src/tracker/index.js+++ b/src/tracker/index.js@@ -54,7 +54,7 @@const parseURL = url => {try {// use location.origin as the base to handle cases where the url is a relative path- const { pathname, search, hash } = new URL(url, href);+ const { pathname, search, hash } = new URL(url, location.href);url = pathname + search + hash;} catch (e) {/* empty */@@ -79,7 +79,6 @@if (!url) return;currentRef = currentUrl;-currentUrl = parseURL(url.toString());if (currentUrl !== currentRef) {