BUG: Wrong permalinks being generated in body (not respecting ssl)

https://app.hyfy.io/v/abDPqzagf2/

Video demonstrating me trying to make anchor links.

The gallery one that was already there works.

However the new ones i try to make...dont

I am on a page https://networkname.com/nameofblog/

instead of generating the link:

#nameofancor
or
https://networkname.com/nameofblog/#nameofancor

they generate:
http://networkname.com/nameofblog/#nameofancor

Which causes a page reload.

So to review:
Anchor creation in visual editor not sending to proper permalinks

Anchor creation in setting area, is working. Sending to right permalinks if on the same page as menu.

Please review asap this bug is very frustrating to non tech people