See rMW includes/auth/TemporaryPasswordPrimaryAuthenticationProvider.php (Line 487)
$url omits the URL protocol (http or https) because it uses getFullURL(); resulting in //lang.wikiproject.org/etc-type URLs.
I guess it needs to be changed to getCanonicalURL() instead.