mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
fix(tracker): Correctly extract pathname
This commit is contained in:
parent
e8da04bebe
commit
aef4b23cce
1 changed files with 7 additions and 1 deletions
|
|
@ -42,7 +42,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
const getPath = url => new URL(url).pathname;
|
||||
const getPath = url => {
|
||||
try {
|
||||
return new URL(url).pathname;
|
||||
} catch (e) {
|
||||
return url;
|
||||
}
|
||||
};
|
||||
|
||||
const getPayload = () => ({
|
||||
website,
|
||||
|
|
|
|||
Loading…
Reference in a new issue