mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Add guard around location redirect.
This commit is contained in:
parent
4bad94f436
commit
99c8752aa5
2 changed files with 5 additions and 2 deletions
|
|
@ -143,7 +143,10 @@
|
|||
) {
|
||||
e.preventDefault();
|
||||
trackEvent(name).then(() => {
|
||||
location.href = get('href');
|
||||
const href = get('href');
|
||||
if (href) {
|
||||
location.href = href;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
trackEvent(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue