Convert protocol-specific to protocol-independent URLs

Avoids issues when using forced SSL admin environments.