mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
add distinct ID to session info, add logic for /undefined
This commit is contained in:
parent
b3e1aef4ef
commit
f522db44f9
5 changed files with 389 additions and 6 deletions
|
|
@ -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;
|
||||
let urlPath = currentUrl.pathname === '/undefined' ? '' : currentUrl.pathname;
|
||||
const urlQuery = currentUrl.search.substring(1);
|
||||
const urlDomain = currentUrl.hostname.replace(/^www./, '');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue