mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Fix tracker bug.
This commit is contained in:
parent
fa20f7f67f
commit
1d977875be
@ -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;
|
||||||
|
|
||||||
|
if (navaigatedUrl.startsWith('http')) {
|
||||||
const url = new URL(navaigatedUrl);
|
const url = new URL(navaigatedUrl);
|
||||||
currentUrl = `${url.pathname}${url.search}`;
|
currentUrl = `${url.pathname}${url.search}`;
|
||||||
|
} else {
|
||||||
|
currentUrl = navaigatedUrl;
|
||||||
|
}
|
||||||
|
|
||||||
pageView();
|
pageView();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user