mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 07:13:37 +01:00
Fix tracker bug.
This commit is contained in:
parent
fa20f7f67f
commit
1d977875be
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "umami",
|
||||
"version": "0.15.0",
|
||||
"version": "0.15.1",
|
||||
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
||||
"author": "Mike Cao <mike@mikecao.com>",
|
||||
"license": "MIT",
|
||||
|
File diff suppressed because one or more lines are too long
@ -56,8 +56,14 @@ import { post, hook, doNotTrack } from '../lib/web';
|
||||
const handlePush = (state, title, navaigatedUrl) => {
|
||||
removeEvents();
|
||||
currentRef = currentUrl;
|
||||
const url = new URL(navaigatedUrl);
|
||||
currentUrl = `${url.pathname}${url.search}`;
|
||||
|
||||
if (navaigatedUrl.startsWith('http')) {
|
||||
const url = new URL(navaigatedUrl);
|
||||
currentUrl = `${url.pathname}${url.search}`;
|
||||
} else {
|
||||
currentUrl = navaigatedUrl;
|
||||
}
|
||||
|
||||
pageView();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user