Skip to content

Commit

Permalink
Bugfix: opening details UTM sources modal (plausible#4295)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerosol authored Jul 1, 2024
1 parent 0594478 commit c871759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/dashboard/util/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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([
"/",
Expand Down

0 comments on commit c871759

Please sign in to comment.