Missing HTTPS when trying to access protected pages
Missing HTTPS when trying to access protected pages

So, in config main site's URL is http://google.com/
Some of my pages are https://
But trying to access them, I get errors.
When dig into, found that all new URLs are build based on base_uri, adding path, query, if any.
Adding also scheme solved the issue.

Actual:
Uri::mergeUrls('http://google.com/';, 'https://google.com/account/')  === 'http://google.com/account/';

Expecting:
Uri::mergeUrls('http://google.com/';, 'https://google.com/account/')  === 'https://google.com/account/';
tiger-seo/Codeception,pecinaon/Codeception,pitpit/Codeception,justintilson/Codeception,nett55/Codeception,janhenkgerritsen/Codeception,mkudenko/Codeception,fbidu/Codeception,nett55/Codeception,tasselchof/Codeception,Naktibalda/Codeception,kt81/Codeception,justintilson/Codeception,tasselchof/Codeception,tiger-seo/Codeception,Pyrotoxin/Codeception,JakobReiter/Codeception,janhenkgerritsen/Codeception,Codeception/base,pitpit/Codeception,cjaoude/Codeception,cjaoude/Codeception,fbidu/Codeception,Codeception/base,bizmate/Codeception,Pyrotoxin/Codeception,namnv609/Codeception,EspadaV8/Codeception,hubbyist/Codeception,vml-rmott/Codeception,Naktibalda/Codeception,orhan-swe/Codeception,yhbyun/Codeception,mkudenko/Codeception,kt81/Codeception,sergeyklay/Codeception,SunDrop/Codeception,JakobReiter/Codeception,namnv609/Codeception,TehJoE/Codeception,Vitafy/Codeception,yhbyun/Codeception,Naktibalda/Codeception,TehJoE/Codeception,Codeception/Codeception,Codeception/base,tasselchof/Codeception,bizmate/Codeception,hubbyist/Codeception,may-den/Codeception,vml-rmott/Codeception,JarJak/Codeception,sergeyklay/Codeception,arduanov/Codeception,Codeception/Codeception,JarJak/Codeception,Vitafy/Codeception,Vreasy/Codeception,Vreasy/Codeception,janthurau/Codeception,SunDrop/Codeception,may-den/Codeception,pecinaon/Codeception,arduanov/Codeception,orhan-swe/Codeception,EspadaV8/Codeception,janthurau/Codeception