mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 09:57:00 +01:00
fix(tracker): Correctly extract pathname
This commit is contained in:
parent
fd5d5c692e
commit
a555d59153
@ -43,10 +43,7 @@
|
||||
};
|
||||
|
||||
const getPath = url => {
|
||||
if (url.substring(0, 4) === 'http') {
|
||||
return '/' + url.split('/').splice(3).join('/');
|
||||
}
|
||||
return url;
|
||||
new URL(url).pathname;
|
||||
};
|
||||
|
||||
const getPayload = () => ({
|
||||
|
Loading…
Reference in New Issue
Block a user