mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Collect urls in pushstate the same way as in initial load
This commit is contained in:
parent
30c84dd54a
commit
9ac97a3293
2 changed files with 4 additions and 3 deletions
|
|
@ -53,10 +53,11 @@ import { post, hook, doNotTrack } from '../lib/web';
|
|||
|
||||
/* Handle history */
|
||||
|
||||
const handlePush = (state, title, url) => {
|
||||
const handlePush = (state, title, navaigatedUrl) => {
|
||||
removeEvents();
|
||||
currentRef = currentUrl;
|
||||
currentUrl = url;
|
||||
const url = new URL(navaigatedUrl);
|
||||
currentUrl = `${url.pathname}${url.search}`;
|
||||
pageView();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue