Steps to replicate the issue (include links if applicable):
- Visit https://patchdemo.wmcloud.org/wikis/8617f832d2/wiki/Special:ReadingLists/Patch_Demo/1/Saved_pages
- Check network tab
What happens?:
Page doesn't render.
ReadingLists return with projects using http:// in URL rather than https://
API request is made to http:// rather than making use of current protocol "//"
What should have happened instead?:
Not sure if this due to ReadingList extension or patchdemo but I would expect getCanonicalServer to return https.
/**
* @return string
*/
private function getLocalProject(): string {
$url = MediaWikiServices::getInstance()->getUrlUtils()->getCanonicalServer();
if ( $url === '' ) {
return '';
}
$parts = MediaWikiServices::getInstance()->getUrlUtils()->parse( $url );
$parts['port'] = null;
$project = MediaWikiServices::getInstance()->getUrlUtils()->assemble( $parts );
return $project;
}Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):