mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-19 15:53:39 +01:00
Merge pull request #41 from snird/master
Collect urls in pushstate the same way as in initial load
This commit is contained in:
commit
8d27a0a846
File diff suppressed because one or more lines are too long
@ -53,10 +53,11 @@ import { post, hook, doNotTrack } from '../lib/web';
|
|||||||
|
|
||||||
/* Handle history */
|
/* Handle history */
|
||||||
|
|
||||||
const handlePush = (state, title, url) => {
|
const handlePush = (state, title, navaigatedUrl) => {
|
||||||
removeEvents();
|
removeEvents();
|
||||||
currentRef = currentUrl;
|
currentRef = currentUrl;
|
||||||
currentUrl = url;
|
const url = new URL(navaigatedUrl);
|
||||||
|
currentUrl = `${url.pathname}${url.search}`;
|
||||||
pageView();
|
pageView();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user