diff --git a/appdb/Tabs/Settings/News/News+Detail.swift b/appdb/Tabs/Settings/News/News+Detail.swift index 697588e7..6a202ee9 100644 --- a/appdb/Tabs/Settings/News/News+Detail.swift +++ b/appdb/Tabs/Settings/News/News+Detail.swift @@ -205,7 +205,7 @@ extension AttributedLabel { case .tag(let tag): if tag.name == "a", var href = tag.attributes["href"] { if href.hasPrefix("http") { - guard let url = URL(string: href.replacingOccurrences(of: "&", with: "&")) else { return } + guard let url = URL(string: href.replacingOccurrences(of: "&", with: "&") + "&ref=" + Global.refCode) else { return } UIApplication.shared.open(url) } else { while href.hasPrefix("/") { href = String(href.dropFirst()) }