mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fixed referrer check. Closes #3016.
This commit is contained in:
parent
cd72fcacf4
commit
6ed660d8a7
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
document,
|
||||
history,
|
||||
} = window;
|
||||
const { hostname, href } = location;
|
||||
const { hostname, href, origin } = location;
|
||||
const { currentScript, referrer } = document;
|
||||
const localStorage = href.startsWith('data:') ? undefined : window.localStorage;
|
||||
|
||||
|
|
@ -260,7 +260,7 @@
|
|||
}
|
||||
|
||||
let currentUrl = parseURL(href);
|
||||
let currentRef = referrer !== hostname ? referrer : '';
|
||||
let currentRef = referrer.startsWith(origin) ? '' : referrer;
|
||||
let title = document.title;
|
||||
let cache;
|
||||
let initialized;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue