Skip to content

armgit / umami

Public Imported from GitHub
0

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.

fix: hash is not included in record

Eritque arcus8d483d92830c
diff --git a/src/app/api/send/route.ts b/src/app/api/send/route.ts
index 60d6f7af0..9d41a68f6 100644
--- a/src/app/api/send/route.ts
+++ b/src/app/api/send/route.ts
@@ -145,7 +145,7 @@ export async function POST(request: Request) {
const base = hostname ? `https://${hostname}` : 'https://localhost';
const currentUrl = new URL(url, base);
- let urlPath = currentUrl.pathname === '/undefined' ? '' : currentUrl.pathname;
+ let urlPath = currentUrl.pathname === '/undefined' ? '' : currentUrl.pathname + currentUrl.hash;
const urlQuery = currentUrl.search.substring(1);
const urlDomain = currentUrl.hostname.replace(/^www./, '');