     public var replacingSchemeWithWikipediaScheme: URL? {
         var components = URLComponents(url: self, resolvingAgainstBaseURL: false)
         components?.scheme = "wikipedia"
-        return components?.url
+        return components?.wmf_URLWithLanguageVariantCode(wmf_languageVariantCode)
     }
     
     /// Returns the percent encoded page title to handle titles with / characters

        let queryItems = [URLQueryItem(name: "wprov", value: wprov)]
        var components = URLComponents(url: self, resolvingAgainstBaseURL: false)
        components?.queryItems = queryItems
        return components?.url ?? self
    }
    
    // URL for sharing text only

        var urlComponents = URLComponents(url: self, resolvingAgainstBaseURL: true)
        let path = "/" + mutableComponents.joined(separator: "/")
        urlComponents?.percentEncodedPath = path.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlPathAllowed) ?? path
        return urlComponents?.wmf_URLWithLanguageVariantCode(wmf_languageVariantCode) ?? self
    }
}

