Bugfix: opening details UTM sources modal (#4295)

This commit is contained in:
hq1 2024-07-01 12:39:55 +02:00 committed by GitHub
parent 0594478add
commit c871759fc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ export function apiPath(site, path = '') {
}
export function sitePath(path = '') {
return `/${path}` + window.location.search
return (path.startsWith('/') ? path : '/' + path) + window.location.search
}
export function setQuery(key, value) {

View File

@ -168,6 +168,7 @@ native_stats_range
screen_size: Enum.random(["Mobile", "Tablet", "Desktop", "Laptop"]),
operating_system: Enum.random(["Windows", "Mac", "Linux"]),
operating_system_version: to_string(Enum.random(0..15)),
utm_campaign: Enum.random(["", "Referral", "Advertisement", "Email"]),
pathname:
Enum.random([
"/",