Skip to content

Commit

Permalink
fix: add encode URL to Plausible button
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatpandac committed Aug 18, 2022
1 parent a1e544a commit 9156718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Planet/Views/Plausible/PlausiblePopover.swift
Expand Up @@ -32,7 +32,7 @@ struct PlausiblePopoverView: View {
Divider()
Button("Full Analytics on Plausible.io") {
let plausibleServer = planet.plausibleAPIServer ?? "plausible.io"
let url = URL(string: "https://\(plausibleServer)/\(plausibleDomain)")!
let url = URL(string: "https://\(plausibleServer)/\(String(plausibleDomain.addingPercentEncoding(withAllowedCharacters: .alphanumerics) ?? ""))")!
if NSWorkspace.shared.open(url) {
}
}.buttonStyle(.link)
Expand Down

0 comments on commit 9156718

Please sign in to comment.