     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

        let components = URLComponents(string: urlComponentsString)
        // Encode this URL to handle titles with forward slashes, otherwise URLComponents thinks they're separate path components
        let encodedBaseURL = encodedWikiURL
        var resolvedURL = components?.url(relativeTo: encodedBaseURL)?.absoluteURL
        resolvedURL?.wmf_languageVariantCode = wmf_languageVariantCode
        return resolvedURL
    }
    
    public var wmf_language: String? {
