Describe the Bug
The event sender for links prevents default and only re-applies it if tracking is successful. If the endpoint is down, links are effectively all broken.
Relevant code:
|
if (!external) e.preventDefault(); |
|
return trackElement(parentElement).then(() => { |
I -think- this would be fixed by using .finally() instead of .then() there.
sendBeacon() would also work, but I've heard y'all decided not to use that.
Database
PostgreSQL
Relevant log output
Which Umami version are you using?
3.1.0
How are you deploying your application?
Docker
Which browser are you using?
Chrome/Firefox/Edge
Describe the Bug
The event sender for links prevents default and only re-applies it if tracking is successful. If the endpoint is down, links are effectively all broken.
Relevant code:
umami/src/tracker/index.js
Lines 143 to 144 in c0ea3ae
I -think- this would be fixed by using
.finally()instead of.then()there.sendBeacon()would also work, but I've heard y'all decided not to use that.Database
PostgreSQL
Relevant log output
Which Umami version are you using?
3.1.0
How are you deploying your application?
Docker
Which browser are you using?
Chrome/Firefox/Edge