Merge pull request #612 from kiwix/feature/use-full-url-for-websites

Use full urls for websites
This commit is contained in:
Kelson 2024-01-05 11:06:10 +01:00 committed by GitHub
commit 9b0e4d460e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ enum Brand {
static let appStoreId: String = Config.value(for: .appStoreID) ?? "id997079563"
static let welcomeLogoImageName: String = "welcomeLogo"
static let aboutText: String = Config.value(for: .aboutText) ?? "settings.about.description".localized
static let aboutWebsite: String = Config.value(for: .aboutWebsite) ?? "www.kiwix.org"
static let aboutWebsite: String = Config.value(for: .aboutWebsite) ?? "https://www.kiwix.org"
static var defaultExternalLinkPolicy: ExternalLinkLoadingPolicy {
guard let policyString: String = Config.value(for: .externalLinkDefaultPolicy),

View File

@ -99,7 +99,7 @@ struct About: View {
private var ourWebsite: some View {
Button("settings.about.our_website.button".localized) {
externalLinkURL = URL(string: "https://\(Brand.aboutWebsite)")
externalLinkURL = URL(string: "\(Brand.aboutWebsite)")
}
}