Fixed base URL calculation algorithm when HTTPS protocol is used