mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 19:15:37 +01:00
fix(tracker): Correctly extract pathname
This commit is contained in:
parent
fd5d5c692e
commit
a555d59153
1 changed files with 1 additions and 4 deletions
|
|
@ -43,10 +43,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const getPath = url => {
|
const getPath = url => {
|
||||||
if (url.substring(0, 4) === 'http') {
|
new URL(url).pathname;
|
||||||
return '/' + url.split('/').splice(3).join('/');
|
|
||||||
}
|
|
||||||
return url;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getPayload = () => ({
|
const getPayload = () => ({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue