mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
feat: Add support for hash-based routing tracking
This commit is contained in:
parent
e881735a23
commit
3fb68e1684
1 changed files with 3 additions and 2 deletions
|
|
@ -53,8 +53,9 @@
|
|||
|
||||
const parseURL = url => {
|
||||
try {
|
||||
const { pathname, search } = new URL(url);
|
||||
url = pathname + search;
|
||||
// use location.origin as the base to handle cases where the url is a relative path
|
||||
const { pathname, search, hash } = new URL(url, location.origin);
|
||||
url = pathname + search + hash;
|
||||
} catch (e) {
|
||||
/* empty */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue