         let queryItems = [URLQueryItem(name: "wprov", value: wprov)]
         var components = URLComponents(url: self, resolvingAgainstBaseURL: false)
         components?.queryItems = queryItems
-        return components?.url ?? self
+        return components?.wmf_URLWithLanguageVariantCode(wmf_languageVariantCode) ?? 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?.url ?? self
    }
}


        let encodedPathComponents = ["wiki", percentEncodedTitle]
        var encodedURLComponents = URLComponents(url: self, resolvingAgainstBaseURL: false)
        encodedURLComponents?.replacePercentEncodedPathWithPathComponents(encodedPathComponents)
        return encodedURLComponents?.wmf_URLWithLanguageVariantCode(wmf_languageVariantCode)
    }
    
    /// Resolves a relative href from a wiki page against the callee.
