Fix tracker bug.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "umami",
|
"name": "umami",
|
||||||
"version": "0.15.0",
|
"version": "0.15.1",
|
||||||
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
||||||
"author": "Mike Cao <mike@mikecao.com>",
|
"author": "Mike Cao <mike@mikecao.com>",
|
||||||
"license": "MIT",
|
"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) => {
|
const handlePush = (state, title, navaigatedUrl) => {
|
||||||
removeEvents();
|
removeEvents();
|
||||||
currentRef = currentUrl;
|
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();
|
pageView();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user